author | kergoth <kergoth> | 2003-01-16 17:48:23 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-16 17:48:23 (UTC) |
commit | 0eec393ef2dd8b43db96c86e80e307f73a771fae (patch) (unidiff) | |
tree | a70ceced4095ecca577dc4c693fa8f6042f78cdb | |
parent | dd3c6e3c2312899ba723a41c18d5af2ad68e6367 (diff) | |
download | opie-0eec393ef2dd8b43db96c86e80e307f73a771fae.zip opie-0eec393ef2dd8b43db96c86e80e307f73a771fae.tar.gz opie-0eec393ef2dd8b43db96c86e80e307f73a771fae.tar.bz2 |
Add clean-configs to noconfig_targets.
-rw-r--r-- | Makefile.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.test b/Makefile.test index 346ed6a..3fe7867 100644 --- a/Makefile.test +++ b/Makefile.test | |||
@@ -1,105 +1,106 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | export OPIEDIR:=$(shell pwd) | 2 | export OPIEDIR:=$(shell pwd) |
3 | export TOPDIR:=$(OPIEDIR) | 3 | export TOPDIR:=$(OPIEDIR) |
4 | export QMAKE:=$(OPIEDIR)/qmake/qmake | 4 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
5 | 5 | ||
6 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 6 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
7 | 7 | ||
8 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ | 8 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
9 | defconfig allyesconfig allnoconfig allmodconfig | 9 | defconfig allyesconfig allnoconfig allmodconfig \ |
10 | clean-configs clean | ||
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/unsupported/opiemail/ifaces/config.in $(TOPDIR)/noncore/unsupported/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/unsupported/opiemail/ifaces/config.in $(TOPDIR)/noncore/unsupported/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 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 25 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
25 | 26 | ||
26 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 27 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
27 | 28 | ||
28 | clean-configs : | 29 | clean-configs : |
29 | @echo "Wiping generated config.in files..." | 30 | @echo "Wiping generated config.in files..." |
30 | @-rm -f $(configs) | 31 | @-rm -f $(configs) |
31 | 32 | ||
32 | -include $(TOPDIR)/.depends.cfgs | 33 | -include $(TOPDIR)/.depends.cfgs |
33 | 34 | ||
34 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 35 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
35 | 36 | ||
36 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 37 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
37 | $(call descend,scripts/kconfig,conf) | 38 | $(call descend,scripts/kconfig,conf) |
38 | @if [ ! -e $@ ]; then \ | 39 | @if [ ! -e $@ ]; then \ |
39 | cp $(TOPDIR)/def-configs/opie $@; \ | 40 | cp $(TOPDIR)/def-configs/opie $@; \ |
40 | fi; | 41 | fi; |
41 | @$(MAKE) -C scripts/kconfig conf; | 42 | @$(MAKE) -C scripts/kconfig conf; |
42 | ./scripts/kconfig/conf -s ./config.in | 43 | ./scripts/kconfig/conf -s ./config.in |
43 | 44 | ||
44 | # config rules must have the $(configs) var defined | 45 | # config rules must have the $(configs) var defined |
45 | # at the time that they run. we must ensure that .depends.cfgs | 46 | # at the time that they run. we must ensure that .depends.cfgs |
46 | # is built and included by the time we reach this point. | 47 | # is built and included by the time we reach this point. |
47 | 48 | ||
48 | xconfig : | 49 | xconfig : |
49 | $(call descend,scripts/kconfig,qconf) | 50 | $(call descend,scripts/kconfig,qconf) |
50 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ | 51 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ |
51 | ./scripts/kconfig/qconf ./config.in | 52 | ./scripts/kconfig/qconf ./config.in |
52 | 53 | ||
53 | menuconfig : scripts/lxdialog/lxdialog | 54 | menuconfig : scripts/lxdialog/lxdialog |
54 | $(call descend,scripts/kconfig,mconf) | 55 | $(call descend,scripts/kconfig,mconf) |
55 | ./scripts/kconfig/mconf ./config.in | 56 | ./scripts/kconfig/mconf ./config.in |
56 | 57 | ||
57 | config : | 58 | config : |
58 | $(call descend,scripts/kconfig,conf) | 59 | $(call descend,scripts/kconfig,conf) |
59 | ./scripts/kconfig/conf ./config.in | 60 | ./scripts/kconfig/conf ./config.in |
60 | 61 | ||
61 | oldconfig : | 62 | oldconfig : |
62 | $(call descend,scripts/kconfig,conf) | 63 | $(call descend,scripts/kconfig,conf) |
63 | ./scripts/kconfig/conf -o ./config.in | 64 | ./scripts/kconfig/conf -o ./config.in |
64 | 65 | ||
65 | randconfig : | 66 | randconfig : |
66 | $(call descend,scripts/kconfig,conf) | 67 | $(call descend,scripts/kconfig,conf) |
67 | ./scripts/kconfig/conf -r ./config.in | 68 | ./scripts/kconfig/conf -r ./config.in |
68 | 69 | ||
69 | allyesconfig : | 70 | allyesconfig : |
70 | $(call descend,scripts/kconfig,conf) | 71 | $(call descend,scripts/kconfig,conf) |
71 | ./scripts/kconfig/conf -y ./config.in | 72 | ./scripts/kconfig/conf -y ./config.in |
72 | 73 | ||
73 | allnoconfig : | 74 | allnoconfig : |
74 | $(call descend,scripts/kconfig,conf) | 75 | $(call descend,scripts/kconfig,conf) |
75 | ./scripts/kconfig/conf -n ./config.in | 76 | ./scripts/kconfig/conf -n ./config.in |
76 | 77 | ||
77 | defconfig : | 78 | defconfig : |
78 | $(call descend,scripts/kconfig,conf) | 79 | $(call descend,scripts/kconfig,conf) |
79 | ./scripts/kconfig/conf -d ./config.in | 80 | ./scripts/kconfig/conf -d ./config.in |
80 | 81 | ||
81 | 82 | ||
82 | export | 83 | export |
83 | 84 | ||
84 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 85 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
85 | 86 | ||
86 | export include-config := 1 | 87 | export include-config := 1 |
87 | 88 | ||
88 | -include $(TOPDIR)/.config | 89 | -include $(TOPDIR)/.config |
89 | -include $(TOPDIR)/.depends | 90 | -include $(TOPDIR)/.depends |
90 | 91 | ||
91 | endif | 92 | endif |
92 | 93 | ||
93 | -include $(TOPDIR)/..config.cmd | 94 | -include $(TOPDIR)/..config.cmd |
94 | 95 | ||
95 | SUBDIRS = $(subdir-y) | 96 | SUBDIRS = $(subdir-y) |
96 | 97 | ||
97 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 98 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
98 | 99 | ||
99 | ifdef CONFIG_OPTIMIZATIONS | 100 | ifdef CONFIG_OPTIMIZATIONS |
100 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 101 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
101 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 102 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
102 | endif | 103 | endif |
103 | 104 | ||
104 | all clean lupdate lrelease install ipk: $(SUBDIRS) | 105 | all clean lupdate lrelease install ipk: $(SUBDIRS) |
105 | 106 | ||