author | kergoth <kergoth> | 2003-02-11 18:33:25 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-02-11 18:33:25 (UTC) |
commit | ec6795c6a15a3b9f4721b628d48366097da9c903 (patch) (unidiff) | |
tree | 0e3aa849eda2a9258313faf45b0b86eb3f2a120b | |
parent | fdeb607c2222e36bbf817114088317b15219af78 (diff) | |
download | opie-ec6795c6a15a3b9f4721b628d48366097da9c903.zip opie-ec6795c6a15a3b9f4721b628d48366097da9c903.tar.gz opie-ec6795c6a15a3b9f4721b628d48366097da9c903.tar.bz2 |
individual makefiles depend on toplevel .config, to ensure regen of makefiles on config change.
-rw-r--r-- | Rules.make | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,6 +1,4 @@ | |||
1 | ## targets ## | ||
2 | |||
3 | $(configs) : | 1 | $(configs) : |
4 | $(call makecfg,$@) | 2 | $(call makecfg,$@) |
5 | 3 | ||
6 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config | 4 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config |
@@ -21,9 +19,9 @@ $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR) | |||
21 | ".PHONY : " $$2 "\n" \ | 19 | ".PHONY : " $$2 "\n" \ |
22 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ | 20 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
23 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends | 21 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
24 | cat $(TOPDIR)/packages | grep -v '^#' | \ | 22 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
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"; }' \ | 23 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
26 | >> $(TOPDIR)/.depends | 24 | >> $(TOPDIR)/.depends |
27 | # interpackage dependency generation | 25 | # interpackage dependency generation |
28 | @cat $(TOPDIR)/packages | \ | 26 | @cat $(TOPDIR)/packages | \ |
29 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends | 27 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |