summaryrefslogtreecommitdiff
path: root/Makefile.test
authorkergoth <kergoth>2002-11-05 18:01:18 (UTC)
committer kergoth <kergoth>2002-11-05 18:01:18 (UTC)
commitbbacc58102236691c8161fac2674998ce428ac3c (patch) (unidiff)
tree11bdfeccc32ef606863fd19e8ff8c3e293721335 /Makefile.test
parent19f22f15980791a734604a2323dc86a73787196c (diff)
downloadopie-bbacc58102236691c8161fac2674998ce428ac3c.zip
opie-bbacc58102236691c8161fac2674998ce428ac3c.tar.gz
opie-bbacc58102236691c8161fac2674998ce428ac3c.tar.bz2
Update dependency generation, and ensure it uses the opie default config when none exists
Diffstat (limited to 'Makefile.test') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.test53
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
2export OPIEDIR:=$(shell pwd) 2export OPIEDIR:=$(shell pwd)
3export TOPDIR:=$(OPIEDIR) 3export TOPDIR:=$(OPIEDIR)
4 4
5export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 5export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
6export QMAKESPEC=$(QMAKESPECSDIR)/qws/linux-generic-g++ 6export QMAKESPEC=$(QMAKESPECSDIR)/qws/linux-generic-g++
7 7
8# The following are config.in's which are generated, to avoid numerous manual edits when 8all :
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
19configs = $(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 10clean-configs : $(TOPDIR)/.depends
20
21all : configs
22
23configs : $(shell echo $(configs) | sort -r)
24
25clean-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
18all : $(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
34xconfig: 28xconfig: $(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
38menuconfig: scripts/lxdialog/lxdialog 32menuconfig: $(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
42config: 36config: $(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
46oldconfig: 40oldconfig: $(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
50randconfig: 44randconfig: $(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
54allyesconfig: 48allyesconfig: $(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
58allnoconfig: 52allnoconfig: $(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
62defconfig: 56defconfig: $(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
70all : $(TOPDIR)/.depends $(subdir-y)
71 60
72include $(TOPDIR)/Rules.make 61include $(TOPDIR)/Rules.make
73 62