|
|
|
@@ -1,202 +1,203 @@ |
1 | .phony: force |
1 | .phony: force |
2 | force: |
2 | force: |
3 | |
3 | |
4 | $(configs) : |
4 | $(configs) : |
5 | $(call makecfg,$@) |
5 | $(call makecfg,$@) |
6 | |
6 | |
7 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config |
7 | $(TOPDIR)/gen.pro : $(TOPDIR)/.config |
8 | echo > $@ |
8 | echo > $@ |
9 | ifneq ($(CONFIG_DEBUG),) |
9 | ifneq ($(CONFIG_DEBUG),) |
10 | echo CONFIG += debug >> $@ |
10 | echo CONFIG += debug >> $@ |
11 | echo CONFIG -= release >> $@ |
11 | echo CONFIG -= release >> $@ |
12 | else |
12 | else |
13 | echo CONFIG -= debug >> $@ |
13 | echo CONFIG -= debug >> $@ |
14 | echo CONFIG += release >> $@ |
14 | echo CONFIG += release >> $@ |
15 | endif |
15 | endif |
16 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
16 | ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 |
17 | echo CONFIG -= qt3 >> $@ |
17 | echo CONFIG -= qt3 >> $@ |
18 | else |
18 | else |
19 | echo CONFIG += qt3 >> $@ |
19 | echo CONFIG += qt3 >> $@ |
20 | endif |
20 | endif |
21 | ifneq ($(CONFIG_QUICK_LAUNCH),) |
21 | ifeq ($(CONFIG_QUICK_LAUNCH),) |
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
23 | echo CONFIG -= quick-app >> $@ |
23 | echo CONFIG -= quick-app >> $@ |
24 | echo CONFIG += quick-app-lib >> $@ |
24 | echo CONFIG += quick-app-lib >> $@ |
25 | echo \} >> $@ |
25 | echo \} >> $@ |
26 | else |
26 | else |
27 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
27 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
28 | echo CONFIG -= quick-app >> $@ |
28 | echo CONFIG -= quick-app >> $@ |
29 | echo CONFIG += quick-app-bin >> $@ |
29 | echo CONFIG += quick-app-bin >> $@ |
30 | echo \} >> $@ |
30 | echo \} >> $@ |
31 | endif |
31 | endif |
32 | |
32 | |
33 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
33 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
34 | @echo Generating dependency information... |
34 | @echo Generating dependency information... |
35 | # add to subdir-y, and add descend rules |
35 | # add to subdir-y, and add descend rules |
36 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
36 | @cat $(TOPDIR)/packages | grep -v '^#' | \ |
37 | awk '{print \ |
37 | awk '{print \ |
38 | ".PHONY : " $$2 "\n" \ |
38 | ".PHONY : " $$2 "\n" \ |
39 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
39 | "subdir-$$(" $$1 ") += " $$2 "\n\n"; \ |
40 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
40 | print $$2 " : " $$2 "/Makefile\n\t$$(call descend,$$@,$(filter-out $$@,$$(filter-out $$@,$$(MAKECMDGOALS))))\n"; }' > $(TOPDIR)/.depends |
41 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
41 | cat $(TOPDIR)/packages | grep -v '^#' | \ |
42 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
42 | perl -ne '($$cfg, $$dir, $$pro) = $$_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$$dir/$$pro" ) { print "$$dir/Makefile : $$dir/$$pro \$$(QMAKE) \$$(OPIEDIR)/gen.pro \$$(OPIEDIR)/.config\n\t\$$(call makefilegen,\$$@)\n\n"; }' \ |
43 | >> $(TOPDIR)/.depends |
43 | >> $(TOPDIR)/.depends |
44 | # interpackage dependency generation |
44 | # interpackage dependency generation |
45 | @cat $(TOPDIR)/packages | \ |
45 | @cat $(TOPDIR)/packages | \ |
46 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
46 | $(TOPDIR)/scripts/deps.pl >> $(TOPDIR)/.depends |
47 | |
47 | |
48 | $(TOPDIR)/.depends.cfgs: |
48 | $(TOPDIR)/.depends.cfgs: |
49 | # config.in interdependencies |
49 | # config.in interdependencies |
50 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
50 | @echo $(configs) | sed -e 's,/config.in,,g' | ( for i in `cat`; do echo $$i; done ) > dirs |
51 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ |
51 | @cat dirs | ( for i in `cat`; do if [ "`cat dirs|grep $$i 2>/dev/null|wc -l`" -ne "1" ]; then deps=`cat dirs|grep $$i| grep -v "^$$i$$"|for i in \`cat|sed -e's,^$(TOPDIR)/,$$(TOPDIR)/,g'\`; do echo $$i/config.in; done`; echo `echo $$i/config.in|sed -e 's,^$(TOPDIR)/,$$(TOPDIR)/,'` : $$deps; fi; done ) >> $@ |
52 | @-rm -f dirs |
52 | @-rm -f dirs |
53 | |
53 | |
54 | $(QTDIR)/stamp-headers : |
54 | $(QTDIR)/stamp-headers : |
55 | @-rm -f $(QTDIR)/stamp-headers* |
55 | @-rm -f $(QTDIR)/stamp-headers* |
56 | ( cd $(QTDIR)/include; \ |
56 | ( cd $(QTDIR)/include; \ |
57 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
57 | $(patsubst %,ln -sf ../src/kernel/%;,qgfx_qws.h qwsmouse_qws.h \ |
58 | qcopchannel_qws.h qwindowsystem_qws.h \ |
58 | qcopchannel_qws.h qwindowsystem_qws.h \ |
59 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
59 | qfontmanager_qws.h qwsdefaultdecoration_qws.h)) |
60 | touch $@ |
60 | touch $@ |
61 | |
61 | |
62 | $(QTDIR)/stamp-headers-x11 : |
62 | $(QTDIR)/stamp-headers-x11 : |
63 | @-rm -f $(QTDIR)/stamp-headers* |
63 | @-rm -f $(QTDIR)/stamp-headers* |
64 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) |
64 | cd $(QTDIR)/include; $(patsubst %,ln -sf $(OPIEDIR)/x11/libqpe-x11/qt/%;,qgfx_qws.h qwsmouse_qws.h qcopchannel_qws.h qwindowsystem_qws.h qfontmanager_qws.h qwsdefaultdecoration_qws.h) |
65 | touch $@ |
65 | touch $@ |
66 | |
66 | |
67 | $(OPIEDIR)/stamp-headers : |
67 | $(OPIEDIR)/stamp-headers : |
68 | @-rm -f $(OPIEDIR)/stamp-headers* |
68 | @-rm -f $(OPIEDIR)/stamp-headers* |
69 | mkdir -p $(TOPDIR)/include/qpe \ |
69 | mkdir -p $(TOPDIR)/include/qpe \ |
70 | $(TOPDIR)/include/qtopia \ |
70 | $(TOPDIR)/include/qtopia \ |
71 | $(TOPDIR)/include/opie \ |
71 | $(TOPDIR)/include/opie \ |
72 | $(TOPDIR)/include/opie2 \ |
72 | $(TOPDIR)/include/opie2 \ |
73 | $(TOPDIR)/include/qtopia/private |
73 | $(TOPDIR)/include/qtopia/private |
74 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
74 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
75 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
75 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
76 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
76 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
77 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
77 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
78 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
78 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
| |
79 | ( cd include/opie && ln -sf ../../libopie/big-screen/*.h .; ) |
79 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
80 | ( cd include/opie2 && ln -sf ../../libopie2/opiecore/*.h .; ) |
80 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
81 | ( cd include/opie2 && ln -sf ../../libopie2/opiemm/*.h .; ) |
81 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
82 | ( cd include/opie2 && ln -sf ../../libopie2/opiedb/*.h .; ) |
82 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
83 | ( cd include/opie2 && ln -sf ../../libopie2/opienet/*.h .; ) |
83 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
84 | #( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) |
84 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
85 | ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) |
85 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
86 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
86 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
87 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
87 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
88 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
88 | touch $@ |
89 | touch $@ |
89 | |
90 | |
90 | $(OPIEDIR)/stamp-headers-x11 : |
91 | $(OPIEDIR)/stamp-headers-x11 : |
91 | @-rm -f $(OPIEDIR)/stamp-headers* |
92 | @-rm -f $(OPIEDIR)/stamp-headers* |
92 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
93 | mkdir -p $(TOPDIR)/include/qpe $(TOPDIR)/include/qtopia \ |
93 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
94 | $(TOPDIR)/include/opie $(TOPDIR)/include/qtopia/private |
94 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
95 | ( cd include/qpe && rm -f *.h; ln -sf ../../library/*.h .; ln -sf ../../library/backend/*.h .; rm -f *_p.h; ) |
95 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
96 | ( cd include/qtopia && rm -f *.h; ln -sf ../../library/*.h .; ) |
96 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
97 | ( cd include/qtopia/private && rm -f *.h; ln -sf ../../../library/backend/*.h .; ) |
97 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
98 | ( cd include/opie && rm -f *.h; ln -sf ../../libopie/*.h .; rm -f *_p.h; ) |
98 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
99 | ( cd include/opie && ln -sf ../../libsql/*.h .; ) |
99 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
100 | ( cd include/opie && ln -sf ../../libopie/pim/*.h .; ) |
100 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
101 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
101 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
102 | ln -sf ../../libopie/$$generatedHeader $$generatedHeader; done ) |
102 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
103 | ln -sf ../../library/custom.h $(TOPDIR)/include/qpe/custom.h |
103 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
104 | ( cd include/qpe; ln -sf ../../x11/libqpe-x11/qpe/*.h .; ) |
104 | touch $@ |
105 | touch $@ |
105 | |
106 | |
106 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
107 | $(TOPDIR)/library/custom.h : $(TOPDIR)/.config |
107 | @-rm -f $@ |
108 | @-rm -f $@ |
108 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
109 | @$(if $(patsubst "%",%,$(CONFIG_CUSTOMFILE)),\ |
109 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
110 | ln -sf $(patsubst "%",%,$(CONFIG_CUSTOMFILE)) $@) |
110 | @touch $@ |
111 | @touch $@ |
111 | |
112 | |
112 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
113 | $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf $(TOPDIR)/scripts/kconfig/conf $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/qmake/qmake: |
113 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
114 | @$(call descend,$(shell dirname $@),$(shell basename $@)) |
114 | |
115 | |
115 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
116 | menuconfig: $(TOPDIR)/scripts/lxdialog/lxdialog $(TOPDIR)/scripts/kconfig/mconf ./config.in |
116 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
117 | $(TOPDIR)/scripts/kconfig/mconf ./config.in |
117 | @touch ./.config.stamp |
118 | @touch ./.config.stamp |
118 | |
119 | |
119 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
120 | xconfig: $(TOPDIR)/scripts/kconfig/qconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
120 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
121 | $(TOPDIR)/scripts/kconfig/qconf ./config.in |
121 | @touch .config.stamp |
122 | @touch .config.stamp |
122 | |
123 | |
123 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
124 | gconfig: $(TOPDIR)/scripts/kconfig/gconf $(TOPDIR)/scripts/kconfig/libkconfig.so ./config.in |
124 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
125 | $(TOPDIR)/scripts/kconfig/gconf ./config.in |
125 | @touch .config.stamp |
126 | @touch .config.stamp |
126 | |
127 | |
127 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
128 | config: $(TOPDIR)/scripts/kconfig/conf ./config.in |
128 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
129 | $(TOPDIR)/scripts/kconfig/conf ./config.in |
129 | @touch .config.stamp |
130 | @touch .config.stamp |
130 | |
131 | |
131 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
132 | oldconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
132 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
133 | $(TOPDIR)/scripts/kconfig/conf -o ./config.in |
133 | @touch .config.stamp |
134 | @touch .config.stamp |
134 | |
135 | |
135 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
136 | randconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
136 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
137 | $(TOPDIR)/scripts/kconfig/conf -r ./config.in |
137 | @touch .config.stamp |
138 | @touch .config.stamp |
138 | |
139 | |
139 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
140 | allyesconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
140 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
141 | $(TOPDIR)/scripts/kconfig/conf -y ./config.in |
141 | @touch .config.stamp |
142 | @touch .config.stamp |
142 | |
143 | |
143 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
144 | allnoconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
144 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
145 | $(TOPDIR)/scripts/kconfig/conf -n ./config.in |
145 | @touch .config.stamp |
146 | @touch .config.stamp |
146 | |
147 | |
147 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
148 | defconfig: $(TOPDIR)/scripts/kconfig/conf ./config.in |
148 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
149 | $(TOPDIR)/scripts/kconfig/conf -d ./config.in |
149 | @touch .config.stamp |
150 | @touch .config.stamp |
150 | |
151 | |
151 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
152 | $(TOPDIR)/qmake/qmake : $(TOPDIR)/mkspecs/default |
152 | |
153 | |
153 | $(TOPDIR)/mkspecs/default : |
154 | $(TOPDIR)/mkspecs/default : |
154 | ln -sf linux-g++ $@ |
155 | ln -sf linux-g++ $@ |
155 | |
156 | |
156 | $(TOPDIR)/scripts/subst : force |
157 | $(TOPDIR)/scripts/subst : force |
157 | @( \ |
158 | @( \ |
158 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
159 | echo 's,\$$QPE_VERSION,$(QPE_VERSION),g'; \ |
159 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
160 | echo 's,\$$OPIE_VERSION,$(OPIE_VERSION),g'; \ |
160 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
161 | echo 's,\$$QTE_VERSION,$(QTE_VERSION),g'; \ |
161 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
162 | echo 's,\$$QTE_REVISION,$(QTE_REVISION),g'; \ |
162 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
163 | echo 's,\$$SUB_VERSION,$(SUB_VERSION),g'; \ |
163 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
164 | echo 's,\$$EXTRAVERSION,$(EXTRAVERSION),g'; \ |
164 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
165 | echo 's,\$$QTE_BASEVERSION,$(QTE_BASEVERSION),g'; \ |
165 | ) > $@ || ( rm -f $@; exit 1 ) |
166 | ) > $@ || ( rm -f $@; exit 1 ) |
166 | |
167 | |
167 | $(TOPDIR)/scripts/filesubst : force |
168 | $(TOPDIR)/scripts/filesubst : force |
168 | @( \ |
169 | @( \ |
169 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
170 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
170 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
171 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
171 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
172 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
172 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
173 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
173 | echo 's,\$$QTDIR,$(prefix),g'; \ |
174 | echo 's,\$$QTDIR,$(prefix),g'; \ |
174 | echo 's,$(QTDIR),$(prefix),g'; \ |
175 | echo 's,$(QTDIR),$(prefix),g'; \ |
175 | echo 's,^\(\./\)*root/,/,g'; \ |
176 | echo 's,^\(\./\)*root/,/,g'; \ |
176 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
177 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
177 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
178 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
178 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
179 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
179 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
180 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
180 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
181 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
181 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
182 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
182 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
183 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
183 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
184 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
184 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
185 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
185 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
186 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
186 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
187 | echo 's,^\(\./\)*help/,$(prefix)/help/,g'; \ |
187 | ) > $@ || ( rm -f $@; exit 1 ) |
188 | ) > $@ || ( rm -f $@; exit 1 ) |
188 | |
189 | |
189 | ## general rules ## |
190 | ## general rules ## |
190 | |
191 | |
191 | define descend |
192 | define descend |
192 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
193 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
193 | endef |
194 | endef |
194 | |
195 | |
195 | define makefilegen |
196 | define makefilegen |
196 | cd $(if $(1),$(shell dirname $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(shell basename $(1))) `cat $(OPIEDIR)/packages | grep " \`echo $(1)|sed -e 's,/Makefile$$,,'\`" | \ |
197 | cd $(if $(1),$(shell dirname $(1))); $(TOPDIR)/qmake/qmake $(3) -o $(if $(1),$(shell basename $(1))) `cat $(OPIEDIR)/packages | grep " \`echo $(1)|sed -e 's,/Makefile$$,,'\`" | \ |
197 | head -1 | awk '{print $$3}'` |
198 | head -1 | awk '{print $$3}'` |
198 | endef |
199 | endef |
199 | |
200 | |
200 | define makecfg |
201 | define makecfg |
201 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
202 | $(TOPDIR)/scripts/makecfg.pl $1 $(OPIEDIR) |
202 | endef |
203 | endef |
|