summaryrefslogtreecommitdiffabout
path: root/Makefile
authorzautrix <zautrix>2005-01-20 02:02:15 (UTC)
committer zautrix <zautrix>2005-01-20 02:02:15 (UTC)
commitb14b1ff10adff7344fa0f5bf44d83c7485f83cbc (patch) (unidiff)
treee50eda89f0476b2f773f80b44a27a8c16bd9dc12 /Makefile
parentfa46db884c427e72446d72f8150b1021dd73e265 (diff)
downloadkdepimpi-b14b1ff10adff7344fa0f5bf44d83c7485f83cbc.zip
kdepimpi-b14b1ff10adff7344fa0f5bf44d83c7485f83cbc.tar.gz
kdepimpi-b14b1ff10adff7344fa0f5bf44d83c7485f83cbc.tar.bz2
better makefile
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f9507f..5a51127 100644
--- a/Makefile
+++ b/Makefile
@@ -175,129 +175,139 @@ variable_test: variable_info
175 $(error KDEPIMDIR is not defined) 175 $(error KDEPIMDIR is not defined)
176 endif 176 endif
177 ifndef PLATFORM 177 ifndef PLATFORM
178 @echo PLATFORM is not defined. 178 @echo PLATFORM is not defined.
179 $(error PLATFORM is not defined) 179 $(error PLATFORM is not defined)
180 endif 180 endif
181 ifdef BUILD_NO_LDAP_PLUGIN 181 ifdef BUILD_NO_LDAP_PLUGIN
182 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 182 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
183 endif 183 endif
184 ifdef BUILD_NO_OPIE_PLUGIN 184 ifdef BUILD_NO_OPIE_PLUGIN
185 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 185 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
186 endif 186 endif
187 ifdef BUILD_NO_QTOPIA_PLUGIN 187 ifdef BUILD_NO_QTOPIA_PLUGIN
188 @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN) 188 @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN)
189 endif 189 endif
190 ifdef BUILD_NO_MICROMAIL 190 ifdef BUILD_NO_MICROMAIL
191 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 191 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
192 endif 192 endif
193 ifdef BUILD_NO_SHARP_PLUGIN 193 ifdef BUILD_NO_SHARP_PLUGIN
194 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 194 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
195 else 195 else
196 ifndef SHARPDTMSDK 196 ifndef SHARPDTMSDK
197 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 197 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
198 $(error SHARPDTMSDK is not defined) 198 $(error SHARPDTMSDK is not defined)
199 endif 199 endif
200 endif 200 endif
201 ifdef BUILD_NO_GAMMU 201 ifdef BUILD_NO_GAMMU
202 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 202 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
203 endif 203 endif
204 ifdef BUILD_NO_PWMANAGER 204 ifdef BUILD_NO_PWMANAGER
205 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) 205 @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER)
206 endif 206 endif
207 @echo -------------------------------------- 207 @echo --------------------------------------
208 208
209 209
210objects: 210objects:
211 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 211 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
212 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 212 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
213 mkdir -p libical/lib/$(PLATFORM) 213 mkdir -p libical/lib/$(PLATFORM)
214 mkdir -p pwmanager/libcrypt/$(PLATFORM) 214 mkdir -p pwmanager/libcrypt/$(PLATFORM)
215 215
216clean: 216clean:
217 rm -rf libical/lib/$(PLATFORM)/*; 217 rm -rf libical/lib/$(PLATFORM)/*;
218 rm -rf pwmanager/libcrypt/$(PLATFORM)/*; 218 rm -rf pwmanager/libcrypt/$(PLATFORM)/*;
219 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 219 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
220 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 220 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
221 done 221 done
222 222
223pac:
224 make
225 make install
226 make dist
223install: 227install:
224 228
225 cd bin/kdepim; make install 229 cd bin/kdepim; make install
226 cp -r Pim $(QPEDIR)/apps 230 cp -r Pim $(QPEDIR)/apps
227 cp db2file/db2file $(QPEDIR)/bin/db2file 231 cp db2file/db2file $(QPEDIR)/bin/db2file
228 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 232 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
229 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 233 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
230 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 234 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
231 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop 235 cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop
232 236
233dist: 237dist:
234 @echo Dont forget to do "make install" before "make dist" 238 @echo Dont forget to do "make install" before "make dist"
235 rm -f *arm.ipk 239 rm -f *arm.ipk
240 rm -f *ipk.zip
241 rm -f ../new_$(KDEPIM_VERSION)/*
236 rm -f *~ 242 rm -f *~
243 cd ..;mkdir -p new_$(KDEPIM_VERSION)
237 cd ..; tar czf kdepimpi-$(KDEPIM_VERSION).tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 244 cd ..; tar czf kdepimpi-$(KDEPIM_VERSION).tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
238 mkipks kmicrokdelibs.control 245 mkipks kmicrokdelibs.control
239 mkipks korganizer.control 246 mkipks korganizer.control
240 mkipks kaddressbook.control 247 mkipks kaddressbook.control
241 ifndef BUILD_NO_MICROMAIL 248 ifndef BUILD_NO_MICROMAIL
242 mkipks kopiemail.control 249 mkipks kopiemail.control
243 endif 250 endif
244 ifndef BUILD_NO_SHARP_PLUGIN 251 ifndef BUILD_NO_SHARP_PLUGIN
245 mkipks ksharpPIM-DTMaccess.control 252 mkipks ksharpPIM-DTMaccess.control
246 endif 253 endif
247 mkipks korganizer-alarm.control 254 mkipks korganizer-alarm.control
248 ifndef BUILD_NO_GAMMU 255 ifndef BUILD_NO_GAMMU
249 mkipks kmobilephoneaccess.control 256 mkipks kmobilephoneaccess.control
250 endif 257 endif
251 ifndef BUILD_NO_PWMANAGER 258 ifndef BUILD_NO_PWMANAGER
252 mkipks pwmanager.control 259 mkipks pwmanager.control
253 endif 260 endif
254 mkipks pimTABicon.control 261 mkipks pimTABicon.control
255 zip kdepim_$(KDEPIM_VERSION)_for_SharpRom.ipk.zip *.ipk ReleaseNotes.txt 262 zip kdepim_$(KDEPIM_VERSION)_for_SharpRom.ipk.zip *.ipk ReleaseNotes.txt
263 mv *.ipk ../new_$(KDEPIM_VERSION)/
264 mv *for_SharpRom.ipk.zip ../new_$(KDEPIM_VERSION)/
265 mv ../kdepimpi-$(KDEPIM_VERSION).tar.gz ../new_$(KDEPIM_VERSION)/
256 266
257tmake: objects \ 267tmake: objects \
258 qtcompat/Makefile$(PLATFORM) \ 268 qtcompat/Makefile$(PLATFORM) \
259 microkde/Makefile$(PLATFORM) \ 269 microkde/Makefile$(PLATFORM) \
260 libkcal/Makefile$(PLATFORM) \ 270 libkcal/Makefile$(PLATFORM) \
261 libkdepim/Makefile$(PLATFORM) \ 271 libkdepim/Makefile$(PLATFORM) \
262 korganizer/Makefile$(PLATFORM) \ 272 korganizer/Makefile$(PLATFORM) \
263 kalarmd/Makefile$(PLATFORM) \ 273 kalarmd/Makefile$(PLATFORM) \
264 libical/src/libical/Makefile$(PLATFORM) \ 274 libical/src/libical/Makefile$(PLATFORM) \
265 libical/src/libicalss/Makefile$(PLATFORM) \ 275 libical/src/libicalss/Makefile$(PLATFORM) \
266 kabc/Makefile$(PLATFORM) \ 276 kabc/Makefile$(PLATFORM) \
267 kabc/formats/binary/Makefile$(PLATFORM) \ 277 kabc/formats/binary/Makefile$(PLATFORM) \
268 kabc/plugins/file/Makefile$(PLATFORM) \ 278 kabc/plugins/file/Makefile$(PLATFORM) \
269 kabc/plugins/dir/Makefile$(PLATFORM) \ 279 kabc/plugins/dir/Makefile$(PLATFORM) \
270 kabc/plugins/ldap/Makefile$(PLATFORM) \ 280 kabc/plugins/ldap/Makefile$(PLATFORM) \
271 kabc/plugins/opie/Makefile$(PLATFORM) \ 281 kabc/plugins/opie/Makefile$(PLATFORM) \
272 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 282 kabc/plugins/qtopia/Makefile$(PLATFORM) \
273 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 283 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
274 kaddressbook/Makefile$(PLATFORM) \ 284 kaddressbook/Makefile$(PLATFORM) \
275 kmicromail/Makefile$(PLATFORM) \ 285 kmicromail/Makefile$(PLATFORM) \
276 kmicromail/libetpan/Makefile$(PLATFORM) \ 286 kmicromail/libetpan/Makefile$(PLATFORM) \
277 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 287 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
278 gammu/emb/common/Makefile$(PLATFORM) \ 288 gammu/emb/common/Makefile$(PLATFORM) \
279 gammu/emb/gammu/Makefile$(PLATFORM) \ 289 gammu/emb/gammu/Makefile$(PLATFORM) \
280 pwmanager/pwmanager/Makefile$(PLATFORM) \ 290 pwmanager/pwmanager/Makefile$(PLATFORM) \
281 pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \ 291 pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \
282 pwmanager/libcrypt/error/Makefile$(PLATFORM) \ 292 pwmanager/libcrypt/error/Makefile$(PLATFORM) \
283 pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \ 293 pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \
284 pwmanager/libcrypt/zlib/Makefile$(PLATFORM) 294 pwmanager/libcrypt/zlib/Makefile$(PLATFORM)
285 295
286qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 296qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
287 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) 297 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM)
288 298
289microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 299microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
290 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) 300 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM)
291 301
292libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 302libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
293 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) 303 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM)
294 304
295 305
296libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 306libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
297 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) 307 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM)
298 308
299kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 309kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
300 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) 310 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM)
301 311
302korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 312korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
303 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) 313 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM)