|
|
|
@@ -116,32 +116,33 @@ $(TOPDIR)/scripts/subst : FORCE |
116 | ) > $@ || ( rm -f $@; exit 1 ) |
116 | ) > $@ || ( rm -f $@; exit 1 ) |
117 | |
117 | |
118 | $(TOPDIR)/scripts/filesubst : FORCE |
118 | $(TOPDIR)/scripts/filesubst : FORCE |
119 | @( \ |
119 | @( \ |
120 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
120 | echo 's,\$$OPIEDIR/root/,/,g'; \ |
121 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
121 | echo 's,$(OPIEDIR)/root/,/,g'; \ |
122 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
122 | echo 's,\$$OPIEDIR,$(prefix),g'; \ |
123 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
123 | echo 's,$(OPIEDIR),$(prefix),g'; \ |
124 | echo 's,\$$QTDIR,$(prefix),g'; \ |
124 | echo 's,\$$QTDIR,$(prefix),g'; \ |
125 | echo 's,$(QTDIR),$(prefix),g'; \ |
125 | echo 's,$(QTDIR),$(prefix),g'; \ |
126 | echo 's,^\(\./\)*root/,/,g'; \ |
126 | echo 's,^\(\./\)*root/,/,g'; \ |
127 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
127 | echo 's,^\(\./\)*etc/,$(prefix)/etc/,g'; \ |
128 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
128 | echo 's,^\(\./\)*lib/,$(prefix)/lib/,g'; \ |
129 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
129 | echo 's,^\(\./\)*bin/,$(prefix)/bin/,g'; \ |
130 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
130 | echo 's,^\(\./\)*pics/,$(prefix)/pics/,g'; \ |
131 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
131 | echo 's,^\(\./\)*sounds/,$(prefix)/sounds/,g'; \ |
| |
132 | echo 's,^\(\./\)*i18n/,$(prefix)/i18n/,g'; \ |
132 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
133 | echo 's,^\(\./\)*plugins/,$(prefix)/plugins/,g'; \ |
133 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
134 | echo 's,^\(\./\)*apps/,$(prefix)/apps/,g'; \ |
134 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
135 | echo 's,^\(\./\)*share/,$(prefix)/share/,g'; \ |
135 | ) > $@ || ( rm -f $@; exit 1 ) |
136 | ) > $@ || ( rm -f $@; exit 1 ) |
136 | |
137 | |
137 | ## general rules ## |
138 | ## general rules ## |
138 | |
139 | |
139 | define descend |
140 | define descend |
140 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
141 | $(MAKE) $(if $(QMAKE),QMAKE=$(QMAKE)) -C $(1) $(2) |
141 | endef |
142 | endef |
142 | |
143 | |
143 | define makefilegen |
144 | define makefilegen |
144 | 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$$,,'\`" | \ |
145 | 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$$,,'\`" | \ |
145 | head -1 | awk '{print $$3}'` |
146 | head -1 | awk '{print $$3}'` |
146 | endef |
147 | endef |
147 | |
148 | |
|