-rw-r--r-- | Rules.make | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,11 +1,12 @@ ## targets ## -$(TOPDIR)/config.in : +$(configs) : + $(call makecfg,$@) $(TOPDIR)/.depends : $(TOPDIR)/config.in @cat $(TOPDIR)/packages | \ awk '/^#/ { next }; {print \ ".PHONY : " $$2 "\n" \ "subdir-$$(" $$1 ") += " $$2 "\n\n" \ $$2 "/Makefile : " $$2 "/" $$3 " $$(TOPDIR)/qmake/qmake\n\t" \ "$$(call makefilegen,$$@)\n\n" \ @@ -33,8 +34,12 @@ $(TOPDIR)/scripts/kconfig/qconf scripts/kconfijg/qconf: define descend $(MAKE) -C $(1) $(2) endef define makefilegen cd $(shell dirname $(1)); $(TOPDIR)/qmake/qmake $(3) -o $(shell basename $(1)) `echo $(1)|sed -e 's,/Makefile$$,,g' -e 's,.*/,,g'`.pro endef + +define makecfg + $(TOPDIR)/scripts/makecfg.pl $1 +endef |