|
diff --git a/Makefile b/Makefile index 9169645..10df035 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,12 +1,7 @@ |
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | ifndef QTDIR |
| |
3 | $(error QTDIR not set) |
| |
4 | endif |
| |
5 | |
2 | |
6 | export OPIEDIR:=$(shell pwd) |
3 | export TOPDIR:=$(shell pwd) |
7 | export TOPDIR:=$(OPIEDIR) |
| |
8 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
| |
9 | |
4 | |
10 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
5 | include $(TOPDIR)/Vars.make |
11 | |
6 | |
12 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
7 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
@@ -27,4 +22,16 @@ configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPD |
27 | all : $(TOPDIR)/.config |
22 | all : $(TOPDIR)/.config |
28 | |
23 | |
| |
24 | STRIP=arm-linux-strip |
| |
25 | |
| |
26 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE |
| |
27 | @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ |
| |
28 | prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ |
| |
29 | preinst=`echo $$ctrl|sed -e 's,\.control$$,.preinst,'`; \ |
| |
30 | postrm=`echo $$ctrl|sed -e 's,\.control$$,.postrm,'`; \ |
| |
31 | postinst=`echo $$ctrl|sed -e 's,\.control$$,.postinst,'`; \ |
| |
32 | echo "Building ipk of $$ctrl"; \ |
| |
33 | 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); \ |
| |
34 | done ) |
| |
35 | |
29 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
36 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
30 | |
37 | |
@@ -35,5 +42,7 @@ clean-configs : |
35 | @-rm -f $(configs) |
42 | @-rm -f $(configs) |
36 | |
43 | |
37 | -include $(TOPDIR)/.depends.cfgs |
44 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) |
| |
45 | include $(TOPDIR)/.depends.cfgs |
| |
46 | endif |
38 | |
47 | |
39 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
48 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
@@ -93,5 +102,4 @@ export include-config := 1 |
93 | -include $(TOPDIR)/.config |
102 | -include $(TOPDIR)/.config |
94 | -include $(TOPDIR)/.depends |
103 | -include $(TOPDIR)/.depends |
95 | |
| |
96 | endif |
104 | endif |
97 | |
105 | |
|