|
|
|
@@ -4,4 +4,14 @@ $(configs) : |
4 | $(call makecfg,$@) |
4 | $(call makecfg,$@) |
5 | |
5 | |
| |
6 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config |
| |
7 | echo > $@ |
| |
8 | ifneq ($(CONFIG_DEBUG),) |
| |
9 | echo CONFIG += debug >> $@ |
| |
10 | echo CONFIG -= release >> $@ |
| |
11 | else |
| |
12 | echo CONFIG -= debug >> $@ |
| |
13 | echo CONFIG += release >> $@ |
| |
14 | endif |
| |
15 | |
6 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
16 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
7 | @echo Generating dependency information... |
17 | @echo Generating dependency information... |
@@ -13,5 +23,5 @@ $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR) |
13 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
23 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
14 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
24 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
15 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE)\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
25 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
16 | >> $(TOPDIR)/.depends |
26 | >> $(TOPDIR)/.depends |
17 | # interpackage dependency generation |
27 | # interpackage dependency generation |
|