author | zautrix <zautrix> | 2004-08-01 11:37:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 11:37:35 (UTC) |
commit | e954cc1e29b129982e4d07c4f490d7e881597374 (patch) (unidiff) | |
tree | 29e7bdcf20952b813637083596102f7e7b080567 /Makefile | |
parent | 8a394f316feb828954d69480553f85c9c0f4b353 (diff) | |
download | kdepimpi-e954cc1e29b129982e4d07c4f490d7e881597374.zip kdepimpi-e954cc1e29b129982e4d07c4f490d7e881597374.tar.gz kdepimpi-e954cc1e29b129982e4d07c4f490d7e881597374.tar.bz2 |
Made sync code more readable by using defines
-rw-r--r-- | Makefile | 30 |
1 files changed, 5 insertions, 25 deletions
@@ -13,45 +13,39 @@ endif | |||
13 | SUBDIRS_MICROKDE = \ | 13 | SUBDIRS_MICROKDE = \ |
14 | libical/src/libical \ | 14 | libical/src/libical \ |
15 | libical/src/libicalss \ | 15 | libical/src/libicalss \ |
16 | qtcompat \ | 16 | qtcompat \ |
17 | microkde \ | 17 | microkde \ |
18 | libkcal \ | 18 | libkcal \ |
19 | libkdepim \ | 19 | libkdepim \ |
20 | kabc \ | 20 | kabc \ |
21 | kabc/formats/binary \ | 21 | kabc/formats/binary \ |
22 | kabc/plugins/file \ | 22 | kabc/plugins/file \ |
23 | kabc/plugins/dir \ | 23 | kabc/plugins/dir \ |
24 | korganizer \ | 24 | korganizer \ |
25 | kalarmd \ | 25 | kalarmd \ |
26 | kaddressbook | 26 | kaddressbook |
27 | 27 | ||
28 | SUBDIRS_QTOPIA_PLUGIN = \ | 28 | SUBDIRS_QTOPIA_PLUGIN = \ |
29 | kabc/converter/qtopia \ | 29 | kabc/plugins/qtopia |
30 | kabc/plugins/qtopia \ | ||
31 | kaddressbook/xxport/qtopia | ||
32 | 30 | ||
33 | SUBDIRS_OPIE_PLUGIN = \ | 31 | SUBDIRS_OPIE_PLUGIN = \ |
34 | kabc/converter/opie \ | 32 | kabc/plugins/opie |
35 | kabc/plugins/opie \ | ||
36 | kaddressbook/xxport/opie | ||
37 | 33 | ||
38 | SUBDIRS_SHARP_PLUGIN = \ | 34 | SUBDIRS_SHARP_PLUGIN = \ |
39 | kabc/converter/sharpdtm \ | 35 | kabc/plugins/sharpdtm |
40 | kabc/plugins/sharpdtm \ | ||
41 | kaddressbook/xxport/sharpdtm | ||
42 | 36 | ||
43 | SUBDIRS_LDAP_PLUGIN = \ | 37 | SUBDIRS_LDAP_PLUGIN = \ |
44 | kabc/plugins/ldap | 38 | kabc/plugins/ldap |
45 | 39 | ||
46 | SUBDIRS_MICROMAIL = \ | 40 | SUBDIRS_MICROMAIL = \ |
47 | kmicromail/libetpan \ | 41 | kmicromail/libetpan \ |
48 | kmicromail/libmailwrapper \ | 42 | kmicromail/libmailwrapper \ |
49 | kmicromail | 43 | kmicromail |
50 | 44 | ||
51 | SUBDIRS = \ | 45 | SUBDIRS = \ |
52 | $(SUBDIRS_MICROKDE) \ | 46 | $(SUBDIRS_MICROKDE) \ |
53 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 47 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
54 | $(SUBDIRS_OPIE_PLUGIN) \ | 48 | $(SUBDIRS_OPIE_PLUGIN) \ |
55 | $(SUBDIRS_SHARP_PLUGIN) \ | 49 | $(SUBDIRS_SHARP_PLUGIN) \ |
56 | $(SUBDIRS_LDAP_PLUGIN) \ | 50 | $(SUBDIRS_LDAP_PLUGIN) \ |
57 | $(SUBDIRS_MICROMAIL) | 51 | $(SUBDIRS_MICROMAIL) |
@@ -135,36 +129,36 @@ variable_test: variable_info | |||
135 | ifndef PLATFORM | 129 | ifndef PLATFORM |
136 | @echo PLATFORM is not defined. | 130 | @echo PLATFORM is not defined. |
137 | $(error PLATFORM is not defined) | 131 | $(error PLATFORM is not defined) |
138 | endif | 132 | endif |
139 | ifdef BUILD_NO_LDAP_PLUGIN | 133 | ifdef BUILD_NO_LDAP_PLUGIN |
140 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | 134 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) |
141 | endif | 135 | endif |
142 | ifdef BUILD_NO_OPIE_PLUGIN | 136 | ifdef BUILD_NO_OPIE_PLUGIN |
143 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | 137 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) |
144 | endif | 138 | endif |
145 | ifdef BUILD_NO_MICROMAIL | 139 | ifdef BUILD_NO_MICROMAIL |
146 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | 140 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) |
147 | endif | 141 | endif |
148 | ifdef BUILD_NO_SHARP_PLUGIN | 142 | ifdef BUILD_NO_SHARP_PLUGIN |
149 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | 143 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) |
150 | else | 144 | else |
151 | ifndef SHARPDTMSDK | 145 | ifndef SHARPDTMSDK |
152 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | 146 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) |
153 | $(error SHARPDTMSDK is not defined) | 147 | $(error SHARPDTMSDK is not defined) |
154 | endif | 148 | endif |
155 | endif | 149 | endif |
156 | @echo -------------------------------------- | 150 | @echo -------------------------------------- |
157 | 151 | ||
158 | 152 | ||
159 | objects: | 153 | objects: |
160 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 154 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
161 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 155 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
162 | mkdir -p libical/lib/$(PLATFORM) | 156 | mkdir -p libical/lib/$(PLATFORM) |
163 | 157 | ||
164 | clean: | 158 | clean: |
165 | rm -f libical/lib/$(PLATFORM)/*; | 159 | rm -f libical/lib/$(PLATFORM)/*; |
166 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 160 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
167 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 161 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
168 | done | 162 | done |
169 | install: | 163 | install: |
170 | cd bin/kdepim; make install | 164 | cd bin/kdepim; make install |
@@ -183,91 +177,77 @@ dist: | |||
183 | ./mkipks kaddressbook.control | 177 | ./mkipks kaddressbook.control |
184 | ifndef BUILD_NO_MICROMAIL | 178 | ifndef BUILD_NO_MICROMAIL |
185 | ./mkipks kopiemail.control | 179 | ./mkipks kopiemail.control |
186 | endif | 180 | endif |
187 | ./mkipks korganizer-alarm.control | 181 | ./mkipks korganizer-alarm.control |
188 | 182 | ||
189 | tmake: objects \ | 183 | tmake: objects \ |
190 | qtcompat/Makefile$(PLATFORM) \ | 184 | qtcompat/Makefile$(PLATFORM) \ |
191 | microkde/Makefile$(PLATFORM) \ | 185 | microkde/Makefile$(PLATFORM) \ |
192 | libkcal/Makefile$(PLATFORM) \ | 186 | libkcal/Makefile$(PLATFORM) \ |
193 | libkdepim/Makefile$(PLATFORM) \ | 187 | libkdepim/Makefile$(PLATFORM) \ |
194 | korganizer/Makefile$(PLATFORM) \ | 188 | korganizer/Makefile$(PLATFORM) \ |
195 | kalarmd/Makefile$(PLATFORM) \ | 189 | kalarmd/Makefile$(PLATFORM) \ |
196 | libical/src/libical/Makefile$(PLATFORM) \ | 190 | libical/src/libical/Makefile$(PLATFORM) \ |
197 | libical/src/libicalss/Makefile$(PLATFORM) \ | 191 | libical/src/libicalss/Makefile$(PLATFORM) \ |
198 | kabc/Makefile$(PLATFORM) \ | 192 | kabc/Makefile$(PLATFORM) \ |
199 | kabc/converter/opie/Makefile$(PLATFORM) \ | ||
200 | kabc/converter/qtopia/Makefile$(PLATFORM) \ | ||
201 | kabc/converter/sharpdtm/Makefile$(PLATFORM) \ | ||
202 | kabc/formats/binary/Makefile$(PLATFORM) \ | 193 | kabc/formats/binary/Makefile$(PLATFORM) \ |
203 | kabc/plugins/file/Makefile$(PLATFORM) \ | 194 | kabc/plugins/file/Makefile$(PLATFORM) \ |
204 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 195 | kabc/plugins/dir/Makefile$(PLATFORM) \ |
205 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 196 | kabc/plugins/ldap/Makefile$(PLATFORM) \ |
206 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 197 | kabc/plugins/opie/Makefile$(PLATFORM) \ |
207 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | 198 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ |
208 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | 199 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ |
209 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ | 200 | kaddressbook/xxport/opie/Makefile$(PLATFORM) \ |
210 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ | 201 | kaddressbook/xxport/qtopia/Makefile$(PLATFORM) \ |
211 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ | 202 | kaddressbook/xxport/sharpdtm/Makefile$(PLATFORM) \ |
212 | kaddressbook/Makefile$(PLATFORM) \ | 203 | kaddressbook/Makefile$(PLATFORM) \ |
213 | kmicromail/Makefile$(PLATFORM) \ | 204 | kmicromail/Makefile$(PLATFORM) \ |
214 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 205 | kmicromail/libetpan/Makefile$(PLATFORM) \ |
215 | kmicromail/libmailwrapper/Makefile$(PLATFORM) | 206 | kmicromail/libmailwrapper/Makefile$(PLATFORM) |
216 | |||
217 | 207 | ||
218 | 208 | ||
219 | 209 | ||
220 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 210 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro |
221 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) | 211 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) |
222 | 212 | ||
223 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 213 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro |
224 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) | 214 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) |
225 | 215 | ||
226 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | 216 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro |
227 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) | 217 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) |
228 | 218 | ||
229 | 219 | ||
230 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | 220 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro |
231 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) | 221 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) |
232 | 222 | ||
233 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | 223 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro |
234 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) | 224 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) |
235 | 225 | ||
236 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | 226 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro |
237 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) | 227 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) |
238 | 228 | ||
239 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | 229 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro |
240 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) | 230 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) |
241 | 231 | ||
242 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | 232 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro |
243 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) | 233 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) |
244 | 234 | ||
245 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | 235 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro |
246 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) | 236 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) |
247 | 237 | ||
248 | kabc/converter/opie/Makefile$(PLATFORM): kabc/converter/opie/opieE.pro | ||
249 | cd kabc/converter/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) | ||
250 | |||
251 | kabc/converter/qtopia/Makefile$(PLATFORM): kabc/converter/qtopia/qtopiaE.pro | ||
252 | cd kabc/converter/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM) | ||
253 | |||
254 | kabc/converter/sharpdtm/Makefile$(PLATFORM): kabc/converter/sharpdtm/sharpdtmE.pro | ||
255 | cd kabc/converter/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM) | ||
256 | |||
257 | |||
258 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | 238 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro |
259 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | 239 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) |
260 | 240 | ||
261 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro | 241 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro |
262 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) | 242 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) |
263 | 243 | ||
264 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro | 244 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro |
265 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) | 245 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) |
266 | 246 | ||
267 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro | 247 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro |
268 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) | 248 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) |
269 | 249 | ||
270 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro | 250 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro |
271 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) | 251 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) |
272 | 252 | ||
273 | kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro | 253 | kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro |