summaryrefslogtreecommitdiff
path: root/Makefile
Unidiff
Diffstat (limited to 'Makefile') (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,33 +1,34 @@
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