|
|
|
@@ -248,70 +248,70 @@ oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
248 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
248 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
249 | @touch .config.stamp |
249 | @touch .config.stamp |
250 | |
250 | |
251 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
251 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
252 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
252 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
253 | @touch .config.stamp |
253 | @touch .config.stamp |
254 | |
254 | |
255 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
255 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
256 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
256 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
257 | @touch .config.stamp |
257 | @touch .config.stamp |
258 | |
258 | |
259 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
259 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
260 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
260 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
261 | @touch .config.stamp |
261 | @touch .config.stamp |
262 | |
262 | |
263 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
263 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
264 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
264 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
265 | @touch .config.stamp |
265 | @touch .config.stamp |
266 | |
266 | |
267 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
267 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
268 | |
268 | |
269 | $(TOPDIR)/mkspecs/default : |
269 | $(TOPDIR)/mkspecs/default : |
270 | ln -sf linux-g++ $@ |
270 | ln -sf linux-g++ $@ |
271 | |
271 | |
272 | $(TOPDIR)/scripts/subst : force |
272 | $(TOPDIR)/scripts/subst : force |
273 | @( \ |
273 | @( \ |
274 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
274 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
275 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
275 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
276 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
276 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
277 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
277 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
278 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
278 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
279 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
279 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
280 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
280 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
281 | ) > $@ || ( rm -f $@; exit 1 ) |
281 | ) > $@ || ( rm -f $@; exit 1 ) |
282 | |
282 | |
283 | $(TOPDIR)/scripts/filesubst : force |
283 | $(TOPDIR)/scripts/filesubst : force |
284 | @( \ |
284 | @( \ |
285 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
285 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
286 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
286 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
287 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
287 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
288 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
288 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
289 | echo 's,\$$QTDIR,$(prefix),g'; \ |
289 | echo 's,\$$QTDIR,$(prefix),g'; \ |
290 | echo 's,$(QTDIR),$(prefix),g'; \ |
290 | echo 's,$(QTDIR),$(prefix),g'; \ |
291 | echo 's,^\(\./\)*root/,/,g'; \ |
291 | echo 's,^\(\./\)*root/,/,g'; \ |
292 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
292 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
293 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
293 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
294 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
294 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
295 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
295 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
296 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
296 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
297 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
297 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
298 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
298 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
299 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
299 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
300 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
300 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
301 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
301 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
302 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
302 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
303 | ) > $@ || ( rm -f $@; exit 1 ) |
303 | ) > $@ || ( rm -f $@; exit 1 ) |
304 | |
304 | |
305 | ## general rules ## |
305 | ## general rules ## |
306 | |
306 | |
307 | define descend |
307 | define descend |
308 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
308 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
309 | endef |
309 | endef |
310 | |
310 | |
311 | define makefilegen |
311 | define makefilegen |
312 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep -m 1 "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) |
312 | cd $(if $(1),$(dir $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(notdir $(1))) $(word 3,$(shell grep "[[:space:]]$(patsubst %/Makefile,%,$(1))[[:space:]]" $(OPIEDIR)/packages)) |
313 | endef |
313 | endef |
314 | |
314 | |
315 | define makecfg |
315 | define makecfg |
316 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
316 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
317 | endef |
317 | endef |
|