summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-04-25 15:59:46 (UTC)
committer kergoth <kergoth>2003-04-25 15:59:46 (UTC)
commit0e22f1a27f45b5179f2668316dd0736a05f4f19d (patch) (unidiff)
tree39fdcd6e4eda1e80994cc787b126e12acf108d1e
parent1976271fefedff8bc0e5176a65ccb36b884bfc50 (diff)
downloadopie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.zip
opie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.tar.gz
opie-0e22f1a27f45b5179f2668316dd0736a05f4f19d.tar.bz2
Add subst, filesubst, ipks to noconfig_targets
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8551f28..4d11615 100644
--- a/Makefile
+++ b/Makefile
@@ -1,73 +1,74 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2 2
3export TOPDIR:=$(shell pwd) 3export TOPDIR:=$(shell pwd)
4 4
5include $(TOPDIR)/Vars.make 5include $(TOPDIR)/Vars.make
6 6
7noconfig_targets := xconfig menuconfig config oldconfig randconfig \ 7noconfig_targets := xconfig menuconfig config oldconfig randconfig \
8 defconfig allyesconfig allnoconfig allmodconfig \ 8 defconfig allyesconfig allnoconfig allmodconfig \
9 clean-configs 9 clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \
10 ipks
10 11
11configs += $(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/todayplugins/config.in 12configs += $(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/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
22all : $(TOPDIR)/.config 23all : $(TOPDIR)/.config
23 24
24ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config 25ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config
25 @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ 26 @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \
26 prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ 27 prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \
27 preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ 28 preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \
28 postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ 29 postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \
29 postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ 30 postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \
30 echo "Building ipk of $$ctrl"; \ 31 echo "Building ipk of $$ctrl"; \
31 cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ 32 cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \
32 done ) 33 done )
33 34
34$(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs 35$(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs
35 36
36all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs 37all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs
37 38
38clean-configs : 39clean-configs :
39 @echo "Wiping generated config.in files..." 40 @echo "Wiping generated config.in files..."
40 @-rm -f $(configs) 41 @-rm -f $(configs)
41 42
42ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) 43ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),)
43 include $(TOPDIR)/.depends.cfgs 44 include $(TOPDIR)/.depends.cfgs
44endif 45endif
45 46
46all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) 47all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs)
47 48
48$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) 49$(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs)
49 $(call descend,scripts/kconfig,conf) 50 $(call descend,scripts/kconfig,conf)
50 @if [ ! -e $@ ]; then \ 51 @if [ ! -e $@ ]; then \
51 cp $(TOPDIR)/def-configs/opie $@; \ 52 cp $(TOPDIR)/def-configs/opie $@; \
52 fi; 53 fi;
53 @$(MAKE) -C scripts/kconfig conf; 54 @$(MAKE) -C scripts/kconfig conf;
54 ./scripts/kconfig/conf -s ./config.in 55 ./scripts/kconfig/conf -s ./config.in
55 56
56# config rules must have the $(configs) var defined 57# config rules must have the $(configs) var defined
57# at the time that they run. we must ensure that .depends.cfgs 58# at the time that they run. we must ensure that .depends.cfgs
58# is built and included by the time we reach this point. 59# is built and included by the time we reach this point.
59 60
60xconfig : 61xconfig :
61 $(call descend,scripts/kconfig,qconf) 62 $(call descend,scripts/kconfig,qconf)
62 LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ 63 LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \
63 ./scripts/kconfig/qconf ./config.in 64 ./scripts/kconfig/qconf ./config.in
64 65
65menuconfig : scripts/lxdialog/lxdialog 66menuconfig : scripts/lxdialog/lxdialog
66 $(call descend,scripts/kconfig,mconf) 67 $(call descend,scripts/kconfig,mconf)
67 ./scripts/kconfig/mconf ./config.in 68 ./scripts/kconfig/mconf ./config.in
68 69
69config : 70config :
70 $(call descend,scripts/kconfig,conf) 71 $(call descend,scripts/kconfig,conf)
71 ./scripts/kconfig/conf ./config.in 72 ./scripts/kconfig/conf ./config.in
72 73
73oldconfig : 74oldconfig :