author | kergoth <kergoth> | 2003-04-25 15:59:46 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-25 15:59:46 (UTC) |
commit | 0e22f1a27f45b5179f2668316dd0736a05f4f19d (patch) (unidiff) | |
tree | 39fdcd6e4eda1e80994cc787b126e12acf108d1e | |
parent | 1976271fefedff8bc0e5176a65ccb36b884bfc50 (diff) | |
download | opie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.zip opie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.tar.gz opie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.tar.bz2 |
Add subst, filesubst, ipks to noconfig_targets
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,105 +1,106 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export TOPDIR:=$(shell pwd) | 3 | export TOPDIR:=$(shell pwd) |
4 | 4 | ||
5 | include $(TOPDIR)/Vars.make | 5 | include $(TOPDIR)/Vars.make |
6 | 6 | ||
7 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ | 7 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
8 | defconfig allyesconfig allnoconfig allmodconfig \ | 8 | defconfig allyesconfig allnoconfig allmodconfig \ |
9 | clean-configs | 9 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ |
10 | ipks | ||
10 | 11 | ||
11 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in | 12 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in |
12 | 13 | ||
13 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 14 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
14 | # in order to have a full set of config.in files. | 15 | # in order to have a full set of config.in files. |
15 | # .depends depends on $(TOPDIR)/.config | 16 | # .depends depends on $(TOPDIR)/.config |
16 | # everything else depends on .depends, to ensure the dependencies are | 17 | # everything else depends on .depends, to ensure the dependencies are |
17 | # intact. | 18 | # intact. |
18 | # | 19 | # |
19 | # NOTE: The order in which things happen in this makefile is | 20 | # NOTE: The order in which things happen in this makefile is |
20 | # -critical-. Do not rearrange this! | 21 | # -critical-. Do not rearrange this! |
21 | 22 | ||
22 | all : $(TOPDIR)/.config | 23 | all : $(TOPDIR)/.config |
23 | 24 | ||
24 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | 25 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
25 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ | 26 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ |
26 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ | 27 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ |
27 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ | 28 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ |
28 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ | 29 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ |
29 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ | 30 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ |
30 | echo "Building ipk of $$ctrl"; \ | 31 | echo "Building ipk of $$ctrl"; \ |
31 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ | 32 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ |
32 | done ) | 33 | done ) |
33 | 34 | ||
34 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 35 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
35 | 36 | ||
36 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 37 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
37 | 38 | ||
38 | clean-configs : | 39 | clean-configs : |
39 | @echo "Wiping generated config.in files..." | 40 | @echo "Wiping generated config.in files..." |
40 | @-rm -f $(configs) | 41 | @-rm -f $(configs) |
41 | 42 | ||
42 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) | 43 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) |
43 | include $(TOPDIR)/.depends.cfgs | 44 | include $(TOPDIR)/.depends.cfgs |
44 | endif | 45 | endif |
45 | 46 | ||
46 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 47 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
47 | 48 | ||
48 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 49 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
49 | $(call descend,scripts/kconfig,conf) | 50 | $(call descend,scripts/kconfig,conf) |
50 | @if [ ! -e $@ ]; then \ | 51 | @if [ ! -e $@ ]; then \ |
51 | cp $(TOPDIR)/def-configs/opie $@; \ | 52 | cp $(TOPDIR)/def-configs/opie $@; \ |
52 | fi; | 53 | fi; |
53 | @$(MAKE) -C scripts/kconfig conf; | 54 | @$(MAKE) -C scripts/kconfig conf; |
54 | ./scripts/kconfig/conf -s ./config.in | 55 | ./scripts/kconfig/conf -s ./config.in |
55 | 56 | ||
56 | # config rules must have the $(configs) var defined | 57 | # config rules must have the $(configs) var defined |
57 | # at the time that they run. we must ensure that .depends.cfgs | 58 | # at the time that they run. we must ensure that .depends.cfgs |
58 | # is built and included by the time we reach this point. | 59 | # is built and included by the time we reach this point. |
59 | 60 | ||
60 | xconfig : | 61 | xconfig : |
61 | $(call descend,scripts/kconfig,qconf) | 62 | $(call descend,scripts/kconfig,qconf) |
62 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ | 63 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ |
63 | ./scripts/kconfig/qconf ./config.in | 64 | ./scripts/kconfig/qconf ./config.in |
64 | 65 | ||
65 | menuconfig : scripts/lxdialog/lxdialog | 66 | menuconfig : scripts/lxdialog/lxdialog |
66 | $(call descend,scripts/kconfig,mconf) | 67 | $(call descend,scripts/kconfig,mconf) |
67 | ./scripts/kconfig/mconf ./config.in | 68 | ./scripts/kconfig/mconf ./config.in |
68 | 69 | ||
69 | config : | 70 | config : |
70 | $(call descend,scripts/kconfig,conf) | 71 | $(call descend,scripts/kconfig,conf) |
71 | ./scripts/kconfig/conf ./config.in | 72 | ./scripts/kconfig/conf ./config.in |
72 | 73 | ||
73 | oldconfig : | 74 | oldconfig : |
74 | $(call descend,scripts/kconfig,conf) | 75 | $(call descend,scripts/kconfig,conf) |
75 | ./scripts/kconfig/conf -o ./config.in | 76 | ./scripts/kconfig/conf -o ./config.in |
76 | 77 | ||
77 | randconfig : | 78 | randconfig : |
78 | $(call descend,scripts/kconfig,conf) | 79 | $(call descend,scripts/kconfig,conf) |
79 | ./scripts/kconfig/conf -r ./config.in | 80 | ./scripts/kconfig/conf -r ./config.in |
80 | 81 | ||
81 | allyesconfig : | 82 | allyesconfig : |
82 | $(call descend,scripts/kconfig,conf) | 83 | $(call descend,scripts/kconfig,conf) |
83 | ./scripts/kconfig/conf -y ./config.in | 84 | ./scripts/kconfig/conf -y ./config.in |
84 | 85 | ||
85 | allnoconfig : | 86 | allnoconfig : |
86 | $(call descend,scripts/kconfig,conf) | 87 | $(call descend,scripts/kconfig,conf) |
87 | ./scripts/kconfig/conf -n ./config.in | 88 | ./scripts/kconfig/conf -n ./config.in |
88 | 89 | ||
89 | defconfig : | 90 | defconfig : |
90 | $(call descend,scripts/kconfig,conf) | 91 | $(call descend,scripts/kconfig,conf) |
91 | ./scripts/kconfig/conf -d ./config.in | 92 | ./scripts/kconfig/conf -d ./config.in |
92 | 93 | ||
93 | 94 | ||
94 | export | 95 | export |
95 | 96 | ||
96 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 97 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
97 | 98 | ||
98 | export include-config := 1 | 99 | export include-config := 1 |
99 | 100 | ||
100 | -include $(TOPDIR)/.config | 101 | -include $(TOPDIR)/.config |
101 | -include $(TOPDIR)/.depends | 102 | -include $(TOPDIR)/.depends |
102 | endif | 103 | endif |
103 | 104 | ||
104 | -include $(TOPDIR)/.config.cmd | 105 | -include $(TOPDIR)/.config.cmd |
105 | 106 | ||