|
|
|
@@ -1,42 +1,40 @@ |
1 | ## targets ## |
1 | ## targets ## |
2 | |
2 | |
3 | $(TOPDIR)/config.in : |
3 | $(TOPDIR)/config.in : |
4 | @-rm -f $@ |
| |
5 | @for cfg in `find $(TOPDIR) -name config.in`; do \ |
| |
6 | echo 'include $$cfg' >> $(TOPDIR)/config.in; \ |
| |
7 | done; |
| |
8 | |
4 | |
9 | $(TOPDIR)/.depends : |
5 | $(TOPDIR)/.depends : $(TOPDIR)/config.in |
10 | @cat $(TOPDIR)/packages | \ |
6 | @cat $(TOPDIR)/packages | \ |
11 | awk '{print \ |
7 | awk '/^#/ { next }; {print \ |
12 | ".PHONY : " $$2 "\n" \ |
8 | ".PHONY : " $$2 "\n" \ |
13 | "subdir-$$(" $$1 ") += " $$2 "\n\n" \ |
9 | "subdir-$$(" $$1 ") += " $$2 "\n\n" \ |
14 | $$2 "/Makefile : " $$2 "/" $$3 " $$(TOPDIR)/qmake/qmake\n\t" \ |
10 | $$2 "/Makefile : " $$2 "/" $$3 " $$(TOPDIR)/qmake/qmake\n\t" \ |
15 | "$$(call makefilegen,$$@)\n\n" \ |
11 | "$$(call makefilegen,$$@)\n\n" \ |
16 | $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@)\n"}'\ |
12 | $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@)\n"}'\ |
17 | > $(TOPDIR)/.depends |
13 | > $(TOPDIR)/.depends |
| |
14 | @cat $(TOPDIR)/packages | \ |
| |
15 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
18 | |
16 | |
19 | $(TOPDIR)/qmake/qmake : |
17 | $(TOPDIR)/qmake/qmake : |
20 | $(call descend,$(TOPDIR)/qmake) |
18 | $(call descend,$(TOPDIR)/qmake) |
21 | |
19 | |
22 | $(TOPDIR)/scripts/lxdialog/lxdialog : |
20 | $(TOPDIR)/scripts/lxdialog/lxdialog : |
23 | $(call descend,$(TOPDIR)/scripts/lxdialog) |
21 | $(call descend,$(TOPDIR)/scripts/lxdialog) |
24 | |
22 | |
25 | $(TOPDIR)/scripts/kconfig/conf scripts/kconfig/conf: |
23 | $(TOPDIR)/scripts/kconfig/conf scripts/kconfig/conf: |
26 | $(call descend,$(TOPDIR)/scripts/kconfig,conf) |
24 | $(call descend,$(TOPDIR)/scripts/kconfig,conf) |
27 | |
25 | |
28 | $(TOPDIR)/scripts/kconfig/mconf scripts/kconfig/mconf: |
26 | $(TOPDIR)/scripts/kconfig/mconf scripts/kconfig/mconf: |
29 | $(call descend,$(TOPDIR)/scripts/kconfig,mconf) |
27 | $(call descend,$(TOPDIR)/scripts/kconfig,mconf) |
30 | |
28 | |
31 | $(TOPDIR)/scripts/kconfig/qconf scripts/kconfijg/qconf: |
29 | $(TOPDIR)/scripts/kconfig/qconf scripts/kconfijg/qconf: |
32 | $(call descend,$(TOPDIR)/scripts/kconfig,qconf) |
30 | $(call descend,$(TOPDIR)/scripts/kconfig,qconf) |
33 | |
31 | |
34 | ## general rules ## |
32 | ## general rules ## |
35 | |
33 | |
36 | define descend |
34 | define descend |
37 | $(MAKE) -C $(1) $(2) |
35 | $(MAKE) -C $(1) $(2) |
38 | endef |
36 | endef |
39 | |
37 | |
40 | define makefilegen |
38 | define makefilegen |
41 | cd $(shell dirname $(1)); $(TOPDIR)/qmake/qmake $(3) -o $(shell basename $(1)) `echo $(1)|sed -e 's,/Makefile$$,,g' -e 's,.*/,,g'`.pro |
39 | cd $(shell dirname $(1)); $(TOPDIR)/qmake/qmake $(3) -o $(shell basename $(1)) `echo $(1)|sed -e 's,/Makefile$$,,g' -e 's,.*/,,g'`.pro |
42 | endef |
40 | endef |
|