summaryrefslogtreecommitdiffabout
path: root/Makefile
Unidiff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec2277e..77def29 100644
--- a/Makefile
+++ b/Makefile
@@ -90,199 +90,202 @@ build_sharp_plugin: build_microkde
90 make -f Makefile$(PLATFORM) || exit 1; popd; \ 90 make -f Makefile$(PLATFORM) || exit 1; popd; \
91 done 91 done
92 endif 92 endif
93 93
94build_ldap_plugin: build_microkde 94build_ldap_plugin: build_microkde
95 ifdef BUILD_NO_LDAP_PLUGIN 95 ifdef BUILD_NO_LDAP_PLUGIN
96 @echo == ldap plugin not build. 96 @echo == ldap plugin not build.
97 else 97 else
98 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ 98 for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \
99 make -f Makefile$(PLATFORM) || exit 1; popd; \ 99 make -f Makefile$(PLATFORM) || exit 1; popd; \
100 done 100 done
101 endif 101 endif
102 102
103 103
104build_micromail: build_microkde 104build_micromail: build_microkde
105 ifdef BUILD_NO_MICROMAIL 105 ifdef BUILD_NO_MICROMAIL
106 @echo == kmicromail not build. 106 @echo == kmicromail not build.
107 else 107 else
108 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ 108 for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \
109 make -f Makefile$(PLATFORM) || exit 1; popd; \ 109 make -f Makefile$(PLATFORM) || exit 1; popd; \
110 done 110 done
111 endif 111 endif
112 112
113build_gammu: variable_test tmake 113build_gammu: variable_test tmake
114 ifdef BUILD_NO_GAMMU 114 ifdef BUILD_NO_GAMMU
115 @echo == gammu not build. 115 @echo == gammu not build.
116 else 116 else
117 for i in $(SUBDIRS_GAMMU); do pushd $$i; \ 117 for i in $(SUBDIRS_GAMMU); do pushd $$i; \
118 make -f Makefile$(PLATFORM) || exit 1; popd; \ 118 make -f Makefile$(PLATFORM) || exit 1; popd; \
119 done 119 done
120 endif 120 endif
121 121
122 122
123variable_info: 123variable_info:
124 @echo -------------------------------------- 124 @echo --------------------------------------
125 @echo KDEPIM buildsystem, variableinfo... 125 @echo KDEPIM buildsystem, variableinfo...
126 @echo KDEPIMDIR=$(KDEPIMDIR) 126 @echo KDEPIMDIR=$(KDEPIMDIR)
127 @echo QTDIR=$(QTDIR) 127 @echo QTDIR=$(QTDIR)
128 @echo QPEDIR=$(QPEDIR) 128 @echo QPEDIR=$(QPEDIR)
129 @echo OPIEDIR=$(OPIEDIR) 129 @echo OPIEDIR=$(OPIEDIR)
130 @echo PLATFORM=$(PLATFORM) 130 @echo PLATFORM=$(PLATFORM)
131 @echo RELEASE_DEBUG=$(RELEASE_DEBUG) 131 @echo RELEASE_DEBUG=$(RELEASE_DEBUG)
132 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) 132 @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL)
133 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) 133 @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN)
134 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) 134 @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN)
135 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) 135 @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN)
136 ifndef BUILD_NO_SHARP_PLUGIN 136 ifndef BUILD_NO_SHARP_PLUGIN
137 @echo SHARPDTMSDK=$(SHARPDTMSDK) 137 @echo SHARPDTMSDK=$(SHARPDTMSDK)
138 endif 138 endif
139 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) 139 @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU)
140 @echo -------------------------------------- 140 @echo --------------------------------------
141 141
142variable_test: variable_info 142variable_test: variable_info
143 @echo KDEPIM buildsystem, variablecheck... 143 @echo KDEPIM buildsystem, variablecheck...
144 ifndef KDEPIMDIR 144 ifndef KDEPIMDIR
145 @echo KDEPIMDIR is not defined. 145 @echo KDEPIMDIR is not defined.
146 $(error KDEPIMDIR is not defined) 146 $(error KDEPIMDIR is not defined)
147 endif 147 endif
148 ifndef PLATFORM 148 ifndef PLATFORM
149 @echo PLATFORM is not defined. 149 @echo PLATFORM is not defined.
150 $(error PLATFORM is not defined) 150 $(error PLATFORM is not defined)
151 endif 151 endif
152 ifdef BUILD_NO_LDAP_PLUGIN 152 ifdef BUILD_NO_LDAP_PLUGIN
153 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) 153 @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN)
154 endif 154 endif
155 ifdef BUILD_NO_OPIE_PLUGIN 155 ifdef BUILD_NO_OPIE_PLUGIN
156 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) 156 @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN)
157 endif 157 endif
158 ifdef BUILD_NO_MICROMAIL 158 ifdef BUILD_NO_MICROMAIL
159 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) 159 @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL)
160 endif 160 endif
161 ifdef BUILD_NO_SHARP_PLUGIN 161 ifdef BUILD_NO_SHARP_PLUGIN
162 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) 162 @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN)
163 else 163 else
164 ifndef SHARPDTMSDK 164 ifndef SHARPDTMSDK
165 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) 165 @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK)
166 $(error SHARPDTMSDK is not defined) 166 $(error SHARPDTMSDK is not defined)
167 endif 167 endif
168 endif 168 endif
169 ifdef BUILD_NO_GAMMU 169 ifdef BUILD_NO_GAMMU
170 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) 170 @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU)
171 endif 171 endif
172 @echo -------------------------------------- 172 @echo --------------------------------------
173 173
174 174
175objects: 175objects:
176 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 176 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done
177 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 177 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done
178 mkdir -p libical/lib/$(PLATFORM) 178 mkdir -p libical/lib/$(PLATFORM)
179 179
180clean: 180clean:
181 rm -rf libical/lib/$(PLATFORM)/*; 181 rm -rf libical/lib/$(PLATFORM)/*;
182 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 182 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\
183 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 183 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \
184 done 184 done
185install: 185install:
186 ifdef KDEPIM_VERSION
186 cd bin/kdepim; make install 187 cd bin/kdepim; make install
187 cp -r Pim $(QPEDIR)/apps 188 cp -r Pim $(QPEDIR)/apps
188 cp db2file/db2file $(QPEDIR)/bin/db2file 189 cp db2file/db2file $(QPEDIR)/bin/db2file
189 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 190 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop
190 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 191 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop
191 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop 192 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop
192 193 else
194 @echo KDEPIM_VERSION not set.Cannot build ipk packages if version is missing.
195 endif
193dist: 196dist:
194 @echo Dont forget to do "make install" before "make dist" 197 @echo Dont forget to do "make install" before "make dist"
195 rm -f *arm.ipk 198 rm -f *arm.ipk
196 rm -f *~ 199 rm -f *~
197 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim 200 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim
198 ./mkipks kmicrokdelibs.control 201 ./mkipks kmicrokdelibs.control
199 ./mkipks korganizer.control 202 ./mkipks korganizer.control
200 ./mkipks kaddressbook.control 203 ./mkipks kaddressbook.control
201 ifndef BUILD_NO_MICROMAIL 204 ifndef BUILD_NO_MICROMAIL
202 ./mkipks kopiemail.control 205 ./mkipks kopiemail.control
203 endif 206 endif
204 ./mkipks korganizer-alarm.control 207 ./mkipks korganizer-alarm.control
205 ifndef BUILD_NO_GAMMU 208 ifndef BUILD_NO_GAMMU
206 ./mkipks kammu.control 209 ./mkipks kammu.control
207 endif 210 endif
208 ./mkipks pim_TAB_icon.control 211 ./mkipks pim_TAB_icon.control
209 212
210tmake: objects \ 213tmake: objects \
211 qtcompat/Makefile$(PLATFORM) \ 214 qtcompat/Makefile$(PLATFORM) \
212 microkde/Makefile$(PLATFORM) \ 215 microkde/Makefile$(PLATFORM) \
213 libkcal/Makefile$(PLATFORM) \ 216 libkcal/Makefile$(PLATFORM) \
214 libkdepim/Makefile$(PLATFORM) \ 217 libkdepim/Makefile$(PLATFORM) \
215 korganizer/Makefile$(PLATFORM) \ 218 korganizer/Makefile$(PLATFORM) \
216 kalarmd/Makefile$(PLATFORM) \ 219 kalarmd/Makefile$(PLATFORM) \
217 libical/src/libical/Makefile$(PLATFORM) \ 220 libical/src/libical/Makefile$(PLATFORM) \
218 libical/src/libicalss/Makefile$(PLATFORM) \ 221 libical/src/libicalss/Makefile$(PLATFORM) \
219 kabc/Makefile$(PLATFORM) \ 222 kabc/Makefile$(PLATFORM) \
220 kabc/formats/binary/Makefile$(PLATFORM) \ 223 kabc/formats/binary/Makefile$(PLATFORM) \
221 kabc/plugins/file/Makefile$(PLATFORM) \ 224 kabc/plugins/file/Makefile$(PLATFORM) \
222 kabc/plugins/dir/Makefile$(PLATFORM) \ 225 kabc/plugins/dir/Makefile$(PLATFORM) \
223 kabc/plugins/ldap/Makefile$(PLATFORM) \ 226 kabc/plugins/ldap/Makefile$(PLATFORM) \
224 kabc/plugins/opie/Makefile$(PLATFORM) \ 227 kabc/plugins/opie/Makefile$(PLATFORM) \
225 kabc/plugins/qtopia/Makefile$(PLATFORM) \ 228 kabc/plugins/qtopia/Makefile$(PLATFORM) \
226 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ 229 kabc/plugins/sharpdtm/Makefile$(PLATFORM) \
227 kaddressbook/Makefile$(PLATFORM) \ 230 kaddressbook/Makefile$(PLATFORM) \
228 kmicromail/Makefile$(PLATFORM) \ 231 kmicromail/Makefile$(PLATFORM) \
229 kmicromail/libetpan/Makefile$(PLATFORM) \ 232 kmicromail/libetpan/Makefile$(PLATFORM) \
230 kmicromail/libmailwrapper/Makefile$(PLATFORM) \ 233 kmicromail/libmailwrapper/Makefile$(PLATFORM) \
231 gammu/emb/common/Makefile$(PLATFORM) \ 234 gammu/emb/common/Makefile$(PLATFORM) \
232 gammu/emb/gammu/Makefile$(PLATFORM) \ 235 gammu/emb/gammu/Makefile$(PLATFORM) \
233 236
234 237
235 238
236 239
237qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 240qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro
238 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) 241 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM)
239 242
240microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 243microkde/Makefile$(PLATFORM): microkde/microkdeE.pro
241 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) 244 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM)
242 245
243libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 246libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro
244 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) 247 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM)
245 248
246 249
247libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 250libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro
248 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) 251 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM)
249 252
250kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 253kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro
251 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) 254 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM)
252 255
253korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 256korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro
254 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) 257 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM)
255 258
256libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 259libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro
257 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) 260 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM)
258 261
259libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 262libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro
260 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) 263 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM)
261 264
262kabc/Makefile$(PLATFORM): kabc/kabcE.pro 265kabc/Makefile$(PLATFORM): kabc/kabcE.pro
263 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) 266 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM)
264 267
265kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 268kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro
266 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 269 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM)
267 270
268kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro 271kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro
269 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM) 272 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" fileE.pro -o Makefile$(PLATFORM)
270 273
271kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro 274kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro
272 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM) 275 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" dirE.pro -o Makefile$(PLATFORM)
273 276
274kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro 277kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro
275 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM) 278 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" ldapE.pro -o Makefile$(PLATFORM)
276 279
277kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro 280kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro
278 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) 281 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM)
279 282
280kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro 283kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro
281 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM) 284 cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" qtopiaE.pro -o Makefile$(PLATFORM)
282 285
283kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro 286kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro
284 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM) 287 cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" sharpdtmE.pro -o Makefile$(PLATFORM)
285 288
286kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 289kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro
287 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) 290 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM)
288 291