author | kergoth <kergoth> | 2002-11-05 18:01:18 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-05 18:01:18 (UTC) |
commit | bbacc58102236691c8161fac2674998ce428ac3c (patch) (unidiff) | |
tree | 11bdfeccc32ef606863fd19e8ff8c3e293721335 /Makefile.test | |
parent | 19f22f15980791a734604a2323dc86a73787196c (diff) | |
download | opie-bbacc58102236691c8161fac2674998ce428ac3c.zip opie-bbacc58102236691c8161fac2674998ce428ac3c.tar.gz opie-bbacc58102236691c8161fac2674998ce428ac3c.tar.bz2 |
Update dependency generation, and ensure it uses the opie default config when none exists
-rw-r--r-- | Makefile.test | 53 |
1 files changed, 21 insertions, 32 deletions
diff --git a/Makefile.test b/Makefile.test index 526aa5d..3311cde 100644 --- a/Makefile.test +++ b/Makefile.test | |||
@@ -1,73 +1,62 @@ | |||
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 | 4 | ||
5 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 5 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
6 | export QMAKESPEC=$(QMAKESPECSDIR)/qws/linux-generic-g++ | 6 | export QMAKESPEC=$(QMAKESPECSDIR)/qws/linux-generic-g++ |
7 | 7 | ||
8 | # The following are config.in's which are generated, to avoid numerous manual edits when | 8 | all : |
9 | # adding packages to the build. | ||
10 | # | ||
11 | # NOTE: There currently exists a bug regarding this, the toplevel config.in -must- be created | ||
12 | # -after- the lower level config.ins, as makecfg.pl does a find for config.in files! | ||
13 | # | ||
14 | # solution: generate this list and stuff into .depends, and also | ||
15 | # generate config.in interdependencies (i.e. topdir config.in depends on | ||
16 | # config.ins within dirs below it. dependencies are solely dir structure | ||
17 | # driven) | ||
18 | 9 | ||
19 | configs = $(TOPDIR)/x11/ipc/server/config.in $(TOPDIR)/x11/ipc/config.in $(TOPDIR)/x11/config.in $(TOPDIR)/noncore/unsupported/opiemail/ifaces/config.in $(TOPDIR)/noncore/unsupported/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/development/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/applets/restartapplet2/config.in $(TOPDIR)/core/applets/config.in $(TOPDIR)/config.in | 10 | clean-configs : $(TOPDIR)/.depends |
20 | |||
21 | all : configs | ||
22 | |||
23 | configs : $(shell echo $(configs) | sort -r) | ||
24 | |||
25 | clean-configs : | ||
26 | @echo "Wiping generated config.in files..." | 11 | @echo "Wiping generated config.in files..." |
27 | @-rm -f $(configs) | 12 | @-rm -f $(configs) |
28 | 13 | ||
29 | ./.config: | 14 | -include $(TOPDIR)/.config |
15 | -include $(TOPDIR)/..config.cmd | ||
16 | -include $(TOPDIR)/.depends | ||
17 | |||
18 | all : $(TOPDIR)/.depends $(configs) $(subdir-y) | ||
19 | |||
20 | ./.config: $(configs) | ||
30 | $(call descend,scripts/kconfig,conf) | 21 | $(call descend,scripts/kconfig,conf) |
31 | @$(MAKE) -C scripts/kconfig conf | 22 | @if [ ! -e $@ ]; then \ |
23 | cp $(TOPDIR)/def-configs/opie $@; \ | ||
24 | fi; | ||
25 | @$(MAKE) -C scripts/kconfig conf; | ||
32 | ./scripts/kconfig/conf -s ./config.in | 26 | ./scripts/kconfig/conf -s ./config.in |
33 | 27 | ||
34 | xconfig: | 28 | xconfig: $(configs) |
35 | $(call descend,scripts/kconfig,qconf) | 29 | $(call descend,scripts/kconfig,qconf) |
36 | ./scripts/kconfig/qconf ./config.in | 30 | ./scripts/kconfig/qconf ./config.in |
37 | 31 | ||
38 | menuconfig: scripts/lxdialog/lxdialog | 32 | menuconfig: $(configs) scripts/lxdialog/lxdialog |
39 | $(call descend,scripts/kconfig,mconf) | 33 | $(call descend,scripts/kconfig,mconf) |
40 | ./scripts/kconfig/mconf ./config.in | 34 | ./scripts/kconfig/mconf ./config.in |
41 | 35 | ||
42 | config: | 36 | config: $(configs) |
43 | $(call descend,scripts/kconfig,conf) | 37 | $(call descend,scripts/kconfig,conf) |
44 | ./scripts/kconfig/conf ./config.in | 38 | ./scripts/kconfig/conf ./config.in |
45 | 39 | ||
46 | oldconfig: | 40 | oldconfig: $(configs) |
47 | $(call descend,scripts/kconfig,conf) | 41 | $(call descend,scripts/kconfig,conf) |
48 | ./scripts/kconfig/conf -o ./config.in | 42 | ./scripts/kconfig/conf -o ./config.in |
49 | 43 | ||
50 | randconfig: | 44 | randconfig: $(configs) |
51 | $(call descend,scripts/kconfig,conf) | 45 | $(call descend,scripts/kconfig,conf) |
52 | ./scripts/kconfig/conf -r ./config.in | 46 | ./scripts/kconfig/conf -r ./config.in |
53 | 47 | ||
54 | allyesconfig: | 48 | allyesconfig: $(configs) |
55 | $(call descend,scripts/kconfig,conf) | 49 | $(call descend,scripts/kconfig,conf) |
56 | ./scripts/kconfig/conf -y ./config.in | 50 | ./scripts/kconfig/conf -y ./config.in |
57 | 51 | ||
58 | allnoconfig: | 52 | allnoconfig: $(configs) |
59 | $(call descend,scripts/kconfig,conf) | 53 | $(call descend,scripts/kconfig,conf) |
60 | ./scripts/kconfig/conf -n ./config.in | 54 | ./scripts/kconfig/conf -n ./config.in |
61 | 55 | ||
62 | defconfig: | 56 | defconfig: $(configs) |
63 | $(call descend,scripts/kconfig,conf) | 57 | $(call descend,scripts/kconfig,conf) |
64 | ./scripts/kconfig/conf -d ./config.in | 58 | ./scripts/kconfig/conf -d ./config.in |
65 | 59 | ||
66 | -include $(TOPDIR)/.config | ||
67 | -include $(TOPDIR)/..config.cmd | ||
68 | -include $(TOPDIR)/.depends | ||
69 | |||
70 | all : $(TOPDIR)/.depends $(subdir-y) | ||
71 | 60 | ||
72 | include $(TOPDIR)/Rules.make | 61 | include $(TOPDIR)/Rules.make |
73 | 62 | ||