summaryrefslogtreecommitdiff
path: root/Makefile.test
Unidiff
Diffstat (limited to 'Makefile.test') (more/less context) (show whitespace changes)
-rw-r--r--Makefile.test17
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,19 +1,25 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2export OPIEDIR:=$(shell pwd) 2export OPIEDIR:=$(shell pwd)
3export TOPDIR:=$(OPIEDIR) 3export TOPDIR:=$(OPIEDIR)
4export QMAKE:=$(OPIEDIR)/qmake/qmake 4export QMAKE:=$(OPIEDIR)/qmake/qmake
5 5
6export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 6export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
7 7
8noconfig_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
8configs += $(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 14configs += $(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
19all : $(TOPDIR)/.config 25all : $(TOPDIR)/.config
@@ -69,29 +75,34 @@ allyesconfig :
69 75
70allnoconfig : 76allnoconfig :
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
74defconfig : 80defconfig :
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
79export 85export
80 86
81ifneq ($(filter-out config menuconfig xconfig randconfig allyesconfig allnoconfig defconfig,$(MAKECMDGOALS)),) 87ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
88
89export 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
85endif 94endif
86 95
87export QMAKESPEC=$(QMAKESPECSDIR)/qws/$(patsubst "%",%,$(CONFIG_SPECFILE)) 96-include $(TOPDIR)/..config.cmd
97
98export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
88 99
89all clean: $(subdir-y) 100all 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
95clean : $(TOPDIR)/.config 106clean : $(TOPDIR)/.config
96 107
97include $(TOPDIR)/Rules.make 108include $(TOPDIR)/Rules.make