author | kergoth <kergoth> | 2002-11-06 20:48:06 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-06 20:48:06 (UTC) |
commit | 8887820cee7c8e004a1e065be7a088791f77425a (patch) (unidiff) | |
tree | bb2d07376ce85e831e9848427f45350a4b0d5703 /Makefile.test | |
parent | ad01f59f45674484c98032ffecbd1bef9d63c366 (diff) | |
download | opie-8887820cee7c8e004a1e065be7a088791f77425a.zip opie-8887820cee7c8e004a1e065be7a088791f77425a.tar.gz opie-8887820cee7c8e004a1e065be7a088791f77425a.tar.bz2 |
Adjust specfile based on x11
-rw-r--r-- | Makefile.test | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile.test b/Makefile.test index b917c32..daa6d35 100644 --- a/Makefile.test +++ b/Makefile.test | |||
@@ -1,97 +1,108 @@ | |||
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 \ | ||
9 | defconfig allyesconfig allnoconfig allmodconfig \ | ||
10 | clean mrproper distclean \ | ||
11 | help tags TAGS sgmldocs psdocs pdfdocs htmldocs \ | ||
12 | checkconfig checkhelp checkincludes | ||
13 | |||
8 | configs += $(TOPDIR)/core/applets/restartapplet2/config.in $(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)/core/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/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/config.in | 14 | configs += $(TOPDIR)/core/applets/restartapplet2/config.in $(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)/core/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/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/config.in |
9 | 15 | ||
10 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 16 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
11 | # in order to have a full set of config.in files. | 17 | # in order to have a full set of config.in files. |
12 | # .depends depends on $(TOPDIR)/.config | 18 | # .depends depends on $(TOPDIR)/.config |
13 | # everything else depends on .depends, to ensure the dependencies are | 19 | # everything else depends on .depends, to ensure the dependencies are |
14 | # intact. | 20 | # intact. |
15 | # | 21 | # |
16 | # NOTE: The order in which things happen in this makefile is | 22 | # NOTE: The order in which things happen in this makefile is |
17 | # -critical-. Do not rearrange this! | 23 | # -critical-. Do not rearrange this! |
18 | 24 | ||
19 | all : $(TOPDIR)/.config | 25 | all : $(TOPDIR)/.config |
20 | 26 | ||
21 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 27 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
22 | 28 | ||
23 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 29 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
24 | 30 | ||
25 | clean-configs : $(TOPDIR)/.depends.cfgs | 31 | clean-configs : $(TOPDIR)/.depends.cfgs |
26 | @echo "Wiping generated config.in files..." | 32 | @echo "Wiping generated config.in files..." |
27 | @-rm -f $(configs) | 33 | @-rm -f $(configs) |
28 | 34 | ||
29 | -include $(TOPDIR)/.depends.cfgs | 35 | -include $(TOPDIR)/.depends.cfgs |
30 | 36 | ||
31 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 37 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
32 | 38 | ||
33 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 39 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
34 | $(call descend,scripts/kconfig,conf) | 40 | $(call descend,scripts/kconfig,conf) |
35 | @if [ ! -e $@ ]; then \ | 41 | @if [ ! -e $@ ]; then \ |
36 | cp $(TOPDIR)/def-configs/opie $@; \ | 42 | cp $(TOPDIR)/def-configs/opie $@; \ |
37 | fi; | 43 | fi; |
38 | @$(MAKE) -C scripts/kconfig conf; | 44 | @$(MAKE) -C scripts/kconfig conf; |
39 | ./scripts/kconfig/conf -s ./config.in | 45 | ./scripts/kconfig/conf -s ./config.in |
40 | 46 | ||
41 | # config rules must have the $(configs) var defined | 47 | # config rules must have the $(configs) var defined |
42 | # at the time that they run. we must ensure that .depends.cfgs | 48 | # at the time that they run. we must ensure that .depends.cfgs |
43 | # is built and included by the time we reach this point. | 49 | # is built and included by the time we reach this point. |
44 | 50 | ||
45 | xconfig : | 51 | xconfig : |
46 | $(call descend,scripts/kconfig,qconf) | 52 | $(call descend,scripts/kconfig,qconf) |
47 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ | 53 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ |
48 | ./scripts/kconfig/qconf ./config.in | 54 | ./scripts/kconfig/qconf ./config.in |
49 | 55 | ||
50 | menuconfig : scripts/lxdialog/lxdialog | 56 | menuconfig : scripts/lxdialog/lxdialog |
51 | $(call descend,scripts/kconfig,mconf) | 57 | $(call descend,scripts/kconfig,mconf) |
52 | ./scripts/kconfig/mconf ./config.in | 58 | ./scripts/kconfig/mconf ./config.in |
53 | 59 | ||
54 | config : | 60 | config : |
55 | $(call descend,scripts/kconfig,conf) | 61 | $(call descend,scripts/kconfig,conf) |
56 | ./scripts/kconfig/conf ./config.in | 62 | ./scripts/kconfig/conf ./config.in |
57 | 63 | ||
58 | oldconfig : | 64 | oldconfig : |
59 | $(call descend,scripts/kconfig,conf) | 65 | $(call descend,scripts/kconfig,conf) |
60 | ./scripts/kconfig/conf -o ./config.in | 66 | ./scripts/kconfig/conf -o ./config.in |
61 | 67 | ||
62 | randconfig : | 68 | randconfig : |
63 | $(call descend,scripts/kconfig,conf) | 69 | $(call descend,scripts/kconfig,conf) |
64 | ./scripts/kconfig/conf -r ./config.in | 70 | ./scripts/kconfig/conf -r ./config.in |
65 | 71 | ||
66 | allyesconfig : | 72 | allyesconfig : |
67 | $(call descend,scripts/kconfig,conf) | 73 | $(call descend,scripts/kconfig,conf) |
68 | ./scripts/kconfig/conf -y ./config.in | 74 | ./scripts/kconfig/conf -y ./config.in |
69 | 75 | ||
70 | allnoconfig : | 76 | allnoconfig : |
71 | $(call descend,scripts/kconfig,conf) | 77 | $(call descend,scripts/kconfig,conf) |
72 | ./scripts/kconfig/conf -n ./config.in | 78 | ./scripts/kconfig/conf -n ./config.in |
73 | 79 | ||
74 | defconfig : | 80 | defconfig : |
75 | $(call descend,scripts/kconfig,conf) | 81 | $(call descend,scripts/kconfig,conf) |
76 | ./scripts/kconfig/conf -d ./config.in | 82 | ./scripts/kconfig/conf -d ./config.in |
77 | 83 | ||
78 | 84 | ||
79 | export | 85 | export |
80 | 86 | ||
81 | ifneq ($(filter-out config menuconfig xconfig randconfig allyesconfig allnoconfig defconfig,$(MAKECMDGOALS)),) | 87 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
88 | |||
89 | export include-config := 1 | ||
90 | |||
82 | -include $(TOPDIR)/.config | 91 | -include $(TOPDIR)/.config |
83 | -include $(TOPDIR)/..config.cmd | ||
84 | -include $(TOPDIR)/.depends | 92 | -include $(TOPDIR)/.depends |
93 | |||
85 | endif | 94 | endif |
86 | 95 | ||
87 | export QMAKESPEC=$(QMAKESPECSDIR)/qws/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 96 | -include $(TOPDIR)/..config.cmd |
97 | |||
98 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | ||
88 | 99 | ||
89 | all clean: $(subdir-y) | 100 | all clean: $(subdir-y) |
90 | 101 | ||
91 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(TOPDIR)/stamp-headers) \ | 102 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(TOPDIR)/stamp-headers) \ |
92 | $(if $(CONFIG_LIBQPE-X11),$(TOPDIR)/stamp-headers-x11) \ | 103 | $(if $(CONFIG_LIBQPE-X11),$(TOPDIR)/stamp-headers-x11) \ |
93 | $(TOPDIR)/library/custom.h | 104 | $(TOPDIR)/library/custom.h |
94 | 105 | ||
95 | clean : $(TOPDIR)/.config | 106 | clean : $(TOPDIR)/.config |
96 | 107 | ||
97 | include $(TOPDIR)/Rules.make | 108 | include $(TOPDIR)/Rules.make |