author | kergoth <kergoth> | 2002-11-05 02:33:22 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-05 02:33:22 (UTC) |
commit | ed163d67a674b1c4ac6b7e917a509029da446dfb (patch) (side-by-side diff) | |
tree | d444f6395e82b1dd66f0ce8a413348a6f183bad3 /Rules.make | |
parent | 9ac6d0a443c417158e3f2acf2de0629c51b6511c (diff) | |
download | opie-ed163d67a674b1c4ac6b7e917a509029da446dfb.zip opie-ed163d67a674b1c4ac6b7e917a509029da446dfb.tar.gz opie-ed163d67a674b1c4ac6b7e917a509029da446dfb.tar.bz2 |
config.in generation to reduce maintainance headaches
-rw-r--r-- | Rules.make | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,40 +1,45 @@ ## 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" \ $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@)\n"}'\ > $(TOPDIR)/.depends @cat $(TOPDIR)/packages | \ $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends $(TOPDIR)/qmake/qmake : $(call descend,$(TOPDIR)/qmake) $(TOPDIR)/scripts/lxdialog/lxdialog : $(call descend,$(TOPDIR)/scripts/lxdialog) $(TOPDIR)/scripts/kconfig/conf scripts/kconfig/conf: $(call descend,$(TOPDIR)/scripts/kconfig,conf) $(TOPDIR)/scripts/kconfig/mconf scripts/kconfig/mconf: $(call descend,$(TOPDIR)/scripts/kconfig,mconf) $(TOPDIR)/scripts/kconfig/qconf scripts/kconfijg/qconf: $(call descend,$(TOPDIR)/scripts/kconfig,qconf) ## general rules ## 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 |