merge the formfield patch from ooo-build
[ooovba.git] / solenv / inc / _tg_zip.mk
blob65d0c4eb0ff42c4f4bca18a3c51da19c249d4740
1 # unroll begin
3 .IF "$(GUI)"=="WNT"
4 command_seperator=&&
5 #command_seperator=^
6 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
7 .ELIF "$(GUI)"=="OS2"
8 command_seperator=&&
9 .ELSE
10 command_seperator=;
11 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
13 .ENDIF
15 .IF "$(ZIP1TARGET)"!=""
17 ZIP1EXT*=.zip
18 .IF "$(common_build_zip)"!=""
19 .IF "$(ZIP1LIST:s/LANGDIR//)" == "$(ZIP1LIST)"
20 ZIP1TARGETN=$(COMMONBIN)/$(ZIP1TARGET)$(ZIP1EXT)
21 .ELSE
22 ZIP1TARGETN=$(foreach,i,$(zip1alllangiso) $(COMMONBIN)/$(ZIP1TARGET)_$i$(ZIP1EXT) )
23 .ENDIF
24 .ELSE # "$(common_build_zip)"!=""
25 .IF "$(ZIP1LIST:s/LANGDIR//)" == "$(ZIP1LIST)"
26 ZIP1TARGETN=$(BIN)/$(ZIP1TARGET)$(ZIP1EXT)
27 .ELSE
28 ZIP1TARGETN=$(foreach,i,$(zip1alllangiso) $(BIN)/$(ZIP1TARGET)_$i$(ZIP1EXT) )
29 .ENDIF
30 .ENDIF # "$(common_build_zip)"!=""
31 ZIP1DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP1TARGETN:s/$(ZIP1EXT)/.dpzz/)))
32 ZIPDEPFILES+=$(ZIP1DEPFILE)
34 ZIP1DIR*=$(ZIPDIR)
35 ZIP1FLAGS*=$(ZIPFLAGS)
36 .IF "$(zip1generatedlangs)"!=""
37 zip1langdirs*=$(alllangiso)
38 .ELSE # "$(zip1generatedlangs)"!=""
39 zip1langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP1DIR) . $(ZIP1DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP1DIR) . $(ZIP1DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
40 .ENDIF # "$(zip1generatedlangs)"!=""
41 .IF "$(ZIP1FORCEALLLANG)"!=""
42 zip1alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip1langdirs) $(eq,$i,$j $i $(NULL))))
43 .ELSE # "$(ZIP1ALLLANG)" != ""
44 zip1alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip1langdirs) $(eq,$i,$j $i $(NULL))))
45 .ENDIF # "$(ZIP1ALLLANG)" != ""
46 .ENDIF # "$(ZIP1TARGET)"!=""
48 .IF "$(ZIP1TARGETN)"!=""
50 ZIP1TMP:=$(mktmp iii)
52 $(MISC)/$(TARGET).$(PWD:f).$(ZIP1TARGET).dpzz : $(ZIP1TARGETN)
54 .IF "$(common_build_zip)"!=""
55 ZIP1HELPVAR=$(COMMONBIN)/$(ZIP1TARGET)
56 .ELSE # "$(common_build_zip)"!=""
57 ZIP1HELPVAR=$(BIN)/$(ZIP1TARGET)
58 .ENDIF # "$(common_build_zip)"!=""
60 $(ZIP1DEPFILE) :
61 @echo # > $(MISC)/$(@:f)
62 .IF "$(common_build_zip)"!=""
63 .IF "$(ZIP1DIR)" != ""
64 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP1DIR)
65 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP1DIR))) $(command_seperator) $(ZIPDEP) $(ZIP1FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP1DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP1EXT)/))) $(foreach,j,$(ZIP1LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP1TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
66 .ELSE # "$(ZIP1DIR)" != ""
67 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP1FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP1EXT)/))) $(foreach,j,$(ZIP1LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP1TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
68 .ENDIF # "$(ZIP1DIR)" != ""
69 .ELSE # "$(common_build_zip)"!=""
70 .IF "$(ZIP1DIR)" != ""
71 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP1DIR)
72 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP1DIR))) $(command_seperator) $(ZIPDEP) $(ZIP1FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP1DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP1EXT)/)) $(foreach,j,$(ZIP1LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP1TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
73 .ELSE # "$(ZIP1DIR)" != ""
74 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP1FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP1EXT)/)) $(foreach,j,$(ZIP1LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP1TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
75 .ENDIF # "$(ZIP1DIR)" != ""
76 .ENDIF # "$(common_build_zip)"!=""
77 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
80 $(ZIP1TARGETN) : delzip $(ZIP1DEPS)
81 .IF "$(VERBOSE)" == "TRUE"
82 @echo ------------------------------
83 .ENDIF
84 @echo "Making: " $(@:f)
85 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
86 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
87 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
88 .IF "$(common_build_zip)"!=""
89 .IF "$(ZIP1DIR)" != ""
90 @@-$(GNUCOPY) -p $@ $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT)
91 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP1HELPVAR)_, $(@:db))} $(ZIP1DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP1FLAGS) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $(subst,LANGDIR_away/, $(ZIP1LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
92 $(COMMAND_ECHO)$(IFEXIST) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $(THEN) \
93 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) \
94 $(FI)
95 $(COMMAND_ECHO)$(COPY) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $@.$(INPATH)
96 $(COMMAND_ECHO)$(RM) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT)
97 .ELSE # "$(ZIP1DIR)" != ""
98 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
99 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP1FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP1LIST) $(subst,LANGDIR,{$(subst,$(ZIP1HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
100 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
101 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
102 $(FI)
103 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
104 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
105 .ENDIF # "$(ZIP1DIR)" != ""
106 @@-$(RM) $@
107 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
108 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
109 .ELSE # "$(common_build_zip)"!=""
110 .IF "$(ZIP1DIR)" != ""
111 @@-$(GNUCOPY) -p $@ $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT)
112 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP1HELPVAR)_, $(@:db))} $(ZIP1DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP1FLAGS) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $(subst,LANGDIR_away/, $(ZIP1LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
113 $(COMMAND_ECHO)$(IFEXIST) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $(THEN) \
114 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) \
115 $(FI)
116 $(COMMAND_ECHO)$(COPY) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT) $@
117 $(COMMAND_ECHO)$(RM) $(ZIP1TMP).$(ZIP1TARGET){$(subst,$(ZIP1HELPVAR),_ $(@:db))}$(ZIP1EXT)
118 .ELSE # "$(ZIP1DIR)" != ""
119 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP1FLAGS) $@ $(foreach,j,$(ZIP1LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP1TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
120 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
121 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
122 $(FI)
123 .ENDIF # "$(ZIP1DIR)" != ""
124 .ENDIF # "$(common_build_zip)"!=""
125 .ENDIF
127 # unroll begin
129 .IF "$(GUI)"=="WNT"
130 command_seperator=&&
131 #command_seperator=^
132 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
133 .ELIF "$(GUI)"=="OS2"
134 command_seperator=&&
135 .ELSE
136 command_seperator=;
137 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
139 .ENDIF
141 .IF "$(ZIP2TARGET)"!=""
143 ZIP2EXT*=.zip
144 .IF "$(common_build_zip)"!=""
145 .IF "$(ZIP2LIST:s/LANGDIR//)" == "$(ZIP2LIST)"
146 ZIP2TARGETN=$(COMMONBIN)/$(ZIP2TARGET)$(ZIP2EXT)
147 .ELSE
148 ZIP2TARGETN=$(foreach,i,$(zip2alllangiso) $(COMMONBIN)/$(ZIP2TARGET)_$i$(ZIP2EXT) )
149 .ENDIF
150 .ELSE # "$(common_build_zip)"!=""
151 .IF "$(ZIP2LIST:s/LANGDIR//)" == "$(ZIP2LIST)"
152 ZIP2TARGETN=$(BIN)/$(ZIP2TARGET)$(ZIP2EXT)
153 .ELSE
154 ZIP2TARGETN=$(foreach,i,$(zip2alllangiso) $(BIN)/$(ZIP2TARGET)_$i$(ZIP2EXT) )
155 .ENDIF
156 .ENDIF # "$(common_build_zip)"!=""
157 ZIP2DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP2TARGETN:s/$(ZIP2EXT)/.dpzz/)))
158 ZIPDEPFILES+=$(ZIP2DEPFILE)
160 ZIP2DIR*=$(ZIPDIR)
161 ZIP2FLAGS*=$(ZIPFLAGS)
162 .IF "$(zip2generatedlangs)"!=""
163 zip2langdirs*=$(alllangiso)
164 .ELSE # "$(zip2generatedlangs)"!=""
165 zip2langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP2DIR) . $(ZIP2DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP2DIR) . $(ZIP2DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
166 .ENDIF # "$(zip2generatedlangs)"!=""
167 .IF "$(ZIP2FORCEALLLANG)"!=""
168 zip2alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip2langdirs) $(eq,$i,$j $i $(NULL))))
169 .ELSE # "$(ZIP2ALLLANG)" != ""
170 zip2alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip2langdirs) $(eq,$i,$j $i $(NULL))))
171 .ENDIF # "$(ZIP2ALLLANG)" != ""
172 .ENDIF # "$(ZIP2TARGET)"!=""
174 .IF "$(ZIP2TARGETN)"!=""
176 ZIP2TMP:=$(mktmp iii)
178 $(MISC)/$(TARGET).$(PWD:f).$(ZIP2TARGET).dpzz : $(ZIP2TARGETN)
180 .IF "$(common_build_zip)"!=""
181 ZIP2HELPVAR=$(COMMONBIN)/$(ZIP2TARGET)
182 .ELSE # "$(common_build_zip)"!=""
183 ZIP2HELPVAR=$(BIN)/$(ZIP2TARGET)
184 .ENDIF # "$(common_build_zip)"!=""
186 $(ZIP2DEPFILE) :
187 @echo # > $(MISC)/$(@:f)
188 .IF "$(common_build_zip)"!=""
189 .IF "$(ZIP2DIR)" != ""
190 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP2DIR)
191 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP2DIR))) $(command_seperator) $(ZIPDEP) $(ZIP2FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP2DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP2EXT)/))) $(foreach,j,$(ZIP2LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP2TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
192 .ELSE # "$(ZIP2DIR)" != ""
193 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP2FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP2EXT)/))) $(foreach,j,$(ZIP2LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP2TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
194 .ENDIF # "$(ZIP2DIR)" != ""
195 .ELSE # "$(common_build_zip)"!=""
196 .IF "$(ZIP2DIR)" != ""
197 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP2DIR)
198 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP2DIR))) $(command_seperator) $(ZIPDEP) $(ZIP2FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP2DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP2EXT)/)) $(foreach,j,$(ZIP2LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP2TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
199 .ELSE # "$(ZIP2DIR)" != ""
200 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP2FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP2EXT)/)) $(foreach,j,$(ZIP2LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP2TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
201 .ENDIF # "$(ZIP2DIR)" != ""
202 .ENDIF # "$(common_build_zip)"!=""
203 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
206 $(ZIP2TARGETN) : delzip $(ZIP2DEPS)
207 .IF "$(VERBOSE)" == "TRUE"
208 @echo ------------------------------
209 .ENDIF
210 @echo "Making: " $(@:f)
211 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
212 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
213 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
214 .IF "$(common_build_zip)"!=""
215 .IF "$(ZIP2DIR)" != ""
216 @@-$(GNUCOPY) -p $@ $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT)
217 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP2HELPVAR)_, $(@:db))} $(ZIP2DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP2FLAGS) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $(subst,LANGDIR_away/, $(ZIP2LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
218 $(COMMAND_ECHO)$(IFEXIST) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $(THEN) \
219 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) \
220 $(FI)
221 $(COMMAND_ECHO)$(COPY) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $@.$(INPATH)
222 $(COMMAND_ECHO)$(RM) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT)
223 .ELSE # "$(ZIP2DIR)" != ""
224 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
225 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP2FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP2LIST) $(subst,LANGDIR,{$(subst,$(ZIP2HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
226 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
227 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
228 $(FI)
229 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
230 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
231 .ENDIF # "$(ZIP2DIR)" != ""
232 @@-$(RM) $@
233 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
234 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
235 .ELSE # "$(common_build_zip)"!=""
236 .IF "$(ZIP2DIR)" != ""
237 @@-$(GNUCOPY) -p $@ $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT)
238 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP2HELPVAR)_, $(@:db))} $(ZIP2DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP2FLAGS) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $(subst,LANGDIR_away/, $(ZIP2LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
239 $(COMMAND_ECHO)$(IFEXIST) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $(THEN) \
240 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) \
241 $(FI)
242 $(COMMAND_ECHO)$(COPY) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT) $@
243 $(COMMAND_ECHO)$(RM) $(ZIP2TMP).$(ZIP2TARGET){$(subst,$(ZIP2HELPVAR),_ $(@:db))}$(ZIP2EXT)
244 .ELSE # "$(ZIP2DIR)" != ""
245 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP2FLAGS) $@ $(foreach,j,$(ZIP2LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP2TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
246 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
247 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
248 $(FI)
249 .ENDIF # "$(ZIP2DIR)" != ""
250 .ENDIF # "$(common_build_zip)"!=""
251 .ENDIF
253 # unroll begin
255 .IF "$(GUI)"=="WNT"
256 command_seperator=&&
257 #command_seperator=^
258 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
259 .ELIF "$(GUI)"=="OS2"
260 command_seperator=&&
261 .ELSE
262 command_seperator=;
263 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
265 .ENDIF
267 .IF "$(ZIP3TARGET)"!=""
269 ZIP3EXT*=.zip
270 .IF "$(common_build_zip)"!=""
271 .IF "$(ZIP3LIST:s/LANGDIR//)" == "$(ZIP3LIST)"
272 ZIP3TARGETN=$(COMMONBIN)/$(ZIP3TARGET)$(ZIP3EXT)
273 .ELSE
274 ZIP3TARGETN=$(foreach,i,$(zip3alllangiso) $(COMMONBIN)/$(ZIP3TARGET)_$i$(ZIP3EXT) )
275 .ENDIF
276 .ELSE # "$(common_build_zip)"!=""
277 .IF "$(ZIP3LIST:s/LANGDIR//)" == "$(ZIP3LIST)"
278 ZIP3TARGETN=$(BIN)/$(ZIP3TARGET)$(ZIP3EXT)
279 .ELSE
280 ZIP3TARGETN=$(foreach,i,$(zip3alllangiso) $(BIN)/$(ZIP3TARGET)_$i$(ZIP3EXT) )
281 .ENDIF
282 .ENDIF # "$(common_build_zip)"!=""
283 ZIP3DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP3TARGETN:s/$(ZIP3EXT)/.dpzz/)))
284 ZIPDEPFILES+=$(ZIP3DEPFILE)
286 ZIP3DIR*=$(ZIPDIR)
287 ZIP3FLAGS*=$(ZIPFLAGS)
288 .IF "$(zip3generatedlangs)"!=""
289 zip3langdirs*=$(alllangiso)
290 .ELSE # "$(zip3generatedlangs)"!=""
291 zip3langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP3DIR) . $(ZIP3DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP3DIR) . $(ZIP3DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
292 .ENDIF # "$(zip3generatedlangs)"!=""
293 .IF "$(ZIP3FORCEALLLANG)"!=""
294 zip3alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip3langdirs) $(eq,$i,$j $i $(NULL))))
295 .ELSE # "$(ZIP3ALLLANG)" != ""
296 zip3alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip3langdirs) $(eq,$i,$j $i $(NULL))))
297 .ENDIF # "$(ZIP3ALLLANG)" != ""
298 .ENDIF # "$(ZIP3TARGET)"!=""
300 .IF "$(ZIP3TARGETN)"!=""
302 ZIP3TMP:=$(mktmp iii)
304 $(MISC)/$(TARGET).$(PWD:f).$(ZIP3TARGET).dpzz : $(ZIP3TARGETN)
306 .IF "$(common_build_zip)"!=""
307 ZIP3HELPVAR=$(COMMONBIN)/$(ZIP3TARGET)
308 .ELSE # "$(common_build_zip)"!=""
309 ZIP3HELPVAR=$(BIN)/$(ZIP3TARGET)
310 .ENDIF # "$(common_build_zip)"!=""
312 $(ZIP3DEPFILE) :
313 @echo # > $(MISC)/$(@:f)
314 .IF "$(common_build_zip)"!=""
315 .IF "$(ZIP3DIR)" != ""
316 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP3DIR)
317 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP3DIR))) $(command_seperator) $(ZIPDEP) $(ZIP3FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP3DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP3EXT)/))) $(foreach,j,$(ZIP3LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP3TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
318 .ELSE # "$(ZIP3DIR)" != ""
319 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP3FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP3EXT)/))) $(foreach,j,$(ZIP3LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP3TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
320 .ENDIF # "$(ZIP3DIR)" != ""
321 .ELSE # "$(common_build_zip)"!=""
322 .IF "$(ZIP3DIR)" != ""
323 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP3DIR)
324 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP3DIR))) $(command_seperator) $(ZIPDEP) $(ZIP3FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP3DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP3EXT)/)) $(foreach,j,$(ZIP3LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP3TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
325 .ELSE # "$(ZIP3DIR)" != ""
326 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP3FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP3EXT)/)) $(foreach,j,$(ZIP3LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP3TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
327 .ENDIF # "$(ZIP3DIR)" != ""
328 .ENDIF # "$(common_build_zip)"!=""
329 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
332 $(ZIP3TARGETN) : delzip $(ZIP3DEPS)
333 .IF "$(VERBOSE)" == "TRUE"
334 @echo ------------------------------
335 .ENDIF
336 @echo "Making: " $(@:f)
337 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
338 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
339 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
340 .IF "$(common_build_zip)"!=""
341 .IF "$(ZIP3DIR)" != ""
342 @@-$(GNUCOPY) -p $@ $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT)
343 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP3HELPVAR)_, $(@:db))} $(ZIP3DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP3FLAGS) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $(subst,LANGDIR_away/, $(ZIP3LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
344 $(COMMAND_ECHO)$(IFEXIST) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $(THEN) \
345 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) \
346 $(FI)
347 $(COMMAND_ECHO)$(COPY) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $@.$(INPATH)
348 $(COMMAND_ECHO)$(RM) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT)
349 .ELSE # "$(ZIP3DIR)" != ""
350 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
351 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP3FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP3LIST) $(subst,LANGDIR,{$(subst,$(ZIP3HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
352 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
353 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
354 $(FI)
355 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
356 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
357 .ENDIF # "$(ZIP3DIR)" != ""
358 @@-$(RM) $@
359 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
360 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
361 .ELSE # "$(common_build_zip)"!=""
362 .IF "$(ZIP3DIR)" != ""
363 @@-$(GNUCOPY) -p $@ $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT)
364 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP3HELPVAR)_, $(@:db))} $(ZIP3DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP3FLAGS) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $(subst,LANGDIR_away/, $(ZIP3LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
365 $(COMMAND_ECHO)$(IFEXIST) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $(THEN) \
366 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) \
367 $(FI)
368 $(COMMAND_ECHO)$(COPY) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT) $@
369 $(COMMAND_ECHO)$(RM) $(ZIP3TMP).$(ZIP3TARGET){$(subst,$(ZIP3HELPVAR),_ $(@:db))}$(ZIP3EXT)
370 .ELSE # "$(ZIP3DIR)" != ""
371 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP3FLAGS) $@ $(foreach,j,$(ZIP3LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP3TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
372 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
373 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
374 $(FI)
375 .ENDIF # "$(ZIP3DIR)" != ""
376 .ENDIF # "$(common_build_zip)"!=""
377 .ENDIF
379 # unroll begin
381 .IF "$(GUI)"=="WNT"
382 command_seperator=&&
383 #command_seperator=^
384 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
385 .ELIF "$(GUI)"=="OS2"
386 command_seperator=&&
387 .ELSE
388 command_seperator=;
389 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
391 .ENDIF
393 .IF "$(ZIP4TARGET)"!=""
395 ZIP4EXT*=.zip
396 .IF "$(common_build_zip)"!=""
397 .IF "$(ZIP4LIST:s/LANGDIR//)" == "$(ZIP4LIST)"
398 ZIP4TARGETN=$(COMMONBIN)/$(ZIP4TARGET)$(ZIP4EXT)
399 .ELSE
400 ZIP4TARGETN=$(foreach,i,$(zip4alllangiso) $(COMMONBIN)/$(ZIP4TARGET)_$i$(ZIP4EXT) )
401 .ENDIF
402 .ELSE # "$(common_build_zip)"!=""
403 .IF "$(ZIP4LIST:s/LANGDIR//)" == "$(ZIP4LIST)"
404 ZIP4TARGETN=$(BIN)/$(ZIP4TARGET)$(ZIP4EXT)
405 .ELSE
406 ZIP4TARGETN=$(foreach,i,$(zip4alllangiso) $(BIN)/$(ZIP4TARGET)_$i$(ZIP4EXT) )
407 .ENDIF
408 .ENDIF # "$(common_build_zip)"!=""
409 ZIP4DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP4TARGETN:s/$(ZIP4EXT)/.dpzz/)))
410 ZIPDEPFILES+=$(ZIP4DEPFILE)
412 ZIP4DIR*=$(ZIPDIR)
413 ZIP4FLAGS*=$(ZIPFLAGS)
414 .IF "$(zip4generatedlangs)"!=""
415 zip4langdirs*=$(alllangiso)
416 .ELSE # "$(zip4generatedlangs)"!=""
417 zip4langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP4DIR) . $(ZIP4DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP4DIR) . $(ZIP4DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
418 .ENDIF # "$(zip4generatedlangs)"!=""
419 .IF "$(ZIP4FORCEALLLANG)"!=""
420 zip4alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip4langdirs) $(eq,$i,$j $i $(NULL))))
421 .ELSE # "$(ZIP4ALLLANG)" != ""
422 zip4alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip4langdirs) $(eq,$i,$j $i $(NULL))))
423 .ENDIF # "$(ZIP4ALLLANG)" != ""
424 .ENDIF # "$(ZIP4TARGET)"!=""
426 .IF "$(ZIP4TARGETN)"!=""
428 ZIP4TMP:=$(mktmp iii)
430 $(MISC)/$(TARGET).$(PWD:f).$(ZIP4TARGET).dpzz : $(ZIP4TARGETN)
432 .IF "$(common_build_zip)"!=""
433 ZIP4HELPVAR=$(COMMONBIN)/$(ZIP4TARGET)
434 .ELSE # "$(common_build_zip)"!=""
435 ZIP4HELPVAR=$(BIN)/$(ZIP4TARGET)
436 .ENDIF # "$(common_build_zip)"!=""
438 $(ZIP4DEPFILE) :
439 @echo # > $(MISC)/$(@:f)
440 .IF "$(common_build_zip)"!=""
441 .IF "$(ZIP4DIR)" != ""
442 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP4DIR)
443 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP4DIR))) $(command_seperator) $(ZIPDEP) $(ZIP4FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP4DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP4EXT)/))) $(foreach,j,$(ZIP4LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP4TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
444 .ELSE # "$(ZIP4DIR)" != ""
445 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP4FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP4EXT)/))) $(foreach,j,$(ZIP4LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP4TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
446 .ENDIF # "$(ZIP4DIR)" != ""
447 .ELSE # "$(common_build_zip)"!=""
448 .IF "$(ZIP4DIR)" != ""
449 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP4DIR)
450 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP4DIR))) $(command_seperator) $(ZIPDEP) $(ZIP4FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP4DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP4EXT)/)) $(foreach,j,$(ZIP4LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP4TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
451 .ELSE # "$(ZIP4DIR)" != ""
452 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP4FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP4EXT)/)) $(foreach,j,$(ZIP4LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP4TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
453 .ENDIF # "$(ZIP4DIR)" != ""
454 .ENDIF # "$(common_build_zip)"!=""
455 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
458 $(ZIP4TARGETN) : delzip $(ZIP4DEPS)
459 .IF "$(VERBOSE)" == "TRUE"
460 @echo ------------------------------
461 .ENDIF
462 @echo "Making: " $(@:f)
463 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
464 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
465 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
466 .IF "$(common_build_zip)"!=""
467 .IF "$(ZIP4DIR)" != ""
468 @@-$(GNUCOPY) -p $@ $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT)
469 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP4HELPVAR)_, $(@:db))} $(ZIP4DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP4FLAGS) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $(subst,LANGDIR_away/, $(ZIP4LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
470 $(COMMAND_ECHO)$(IFEXIST) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $(THEN) \
471 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) \
472 $(FI)
473 $(COMMAND_ECHO)$(COPY) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $@.$(INPATH)
474 $(COMMAND_ECHO)$(RM) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT)
475 .ELSE # "$(ZIP4DIR)" != ""
476 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
477 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP4FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP4LIST) $(subst,LANGDIR,{$(subst,$(ZIP4HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
478 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
479 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
480 $(FI)
481 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
482 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
483 .ENDIF # "$(ZIP4DIR)" != ""
484 @@-$(RM) $@
485 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
486 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
487 .ELSE # "$(common_build_zip)"!=""
488 .IF "$(ZIP4DIR)" != ""
489 @@-$(GNUCOPY) -p $@ $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT)
490 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP4HELPVAR)_, $(@:db))} $(ZIP4DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP4FLAGS) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $(subst,LANGDIR_away/, $(ZIP4LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
491 $(COMMAND_ECHO)$(IFEXIST) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $(THEN) \
492 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) \
493 $(FI)
494 $(COMMAND_ECHO)$(COPY) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT) $@
495 $(COMMAND_ECHO)$(RM) $(ZIP4TMP).$(ZIP4TARGET){$(subst,$(ZIP4HELPVAR),_ $(@:db))}$(ZIP4EXT)
496 .ELSE # "$(ZIP4DIR)" != ""
497 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP4FLAGS) $@ $(foreach,j,$(ZIP4LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP4TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
498 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
499 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
500 $(FI)
501 .ENDIF # "$(ZIP4DIR)" != ""
502 .ENDIF # "$(common_build_zip)"!=""
503 .ENDIF
505 # unroll begin
507 .IF "$(GUI)"=="WNT"
508 command_seperator=&&
509 #command_seperator=^
510 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
511 .ELIF "$(GUI)"=="OS2"
512 command_seperator=&&
513 .ELSE
514 command_seperator=;
515 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
517 .ENDIF
519 .IF "$(ZIP5TARGET)"!=""
521 ZIP5EXT*=.zip
522 .IF "$(common_build_zip)"!=""
523 .IF "$(ZIP5LIST:s/LANGDIR//)" == "$(ZIP5LIST)"
524 ZIP5TARGETN=$(COMMONBIN)/$(ZIP5TARGET)$(ZIP5EXT)
525 .ELSE
526 ZIP5TARGETN=$(foreach,i,$(zip5alllangiso) $(COMMONBIN)/$(ZIP5TARGET)_$i$(ZIP5EXT) )
527 .ENDIF
528 .ELSE # "$(common_build_zip)"!=""
529 .IF "$(ZIP5LIST:s/LANGDIR//)" == "$(ZIP5LIST)"
530 ZIP5TARGETN=$(BIN)/$(ZIP5TARGET)$(ZIP5EXT)
531 .ELSE
532 ZIP5TARGETN=$(foreach,i,$(zip5alllangiso) $(BIN)/$(ZIP5TARGET)_$i$(ZIP5EXT) )
533 .ENDIF
534 .ENDIF # "$(common_build_zip)"!=""
535 ZIP5DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP5TARGETN:s/$(ZIP5EXT)/.dpzz/)))
536 ZIPDEPFILES+=$(ZIP5DEPFILE)
538 ZIP5DIR*=$(ZIPDIR)
539 ZIP5FLAGS*=$(ZIPFLAGS)
540 .IF "$(zip5generatedlangs)"!=""
541 zip5langdirs*=$(alllangiso)
542 .ELSE # "$(zip5generatedlangs)"!=""
543 zip5langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP5DIR) . $(ZIP5DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP5DIR) . $(ZIP5DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
544 .ENDIF # "$(zip5generatedlangs)"!=""
545 .IF "$(ZIP5FORCEALLLANG)"!=""
546 zip5alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip5langdirs) $(eq,$i,$j $i $(NULL))))
547 .ELSE # "$(ZIP5ALLLANG)" != ""
548 zip5alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip5langdirs) $(eq,$i,$j $i $(NULL))))
549 .ENDIF # "$(ZIP5ALLLANG)" != ""
550 .ENDIF # "$(ZIP5TARGET)"!=""
552 .IF "$(ZIP5TARGETN)"!=""
554 ZIP5TMP:=$(mktmp iii)
556 $(MISC)/$(TARGET).$(PWD:f).$(ZIP5TARGET).dpzz : $(ZIP5TARGETN)
558 .IF "$(common_build_zip)"!=""
559 ZIP5HELPVAR=$(COMMONBIN)/$(ZIP5TARGET)
560 .ELSE # "$(common_build_zip)"!=""
561 ZIP5HELPVAR=$(BIN)/$(ZIP5TARGET)
562 .ENDIF # "$(common_build_zip)"!=""
564 $(ZIP5DEPFILE) :
565 @echo # > $(MISC)/$(@:f)
566 .IF "$(common_build_zip)"!=""
567 .IF "$(ZIP5DIR)" != ""
568 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP5DIR)
569 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP5DIR))) $(command_seperator) $(ZIPDEP) $(ZIP5FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP5DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP5EXT)/))) $(foreach,j,$(ZIP5LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP5TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
570 .ELSE # "$(ZIP5DIR)" != ""
571 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP5FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP5EXT)/))) $(foreach,j,$(ZIP5LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP5TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
572 .ENDIF # "$(ZIP5DIR)" != ""
573 .ELSE # "$(common_build_zip)"!=""
574 .IF "$(ZIP5DIR)" != ""
575 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP5DIR)
576 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP5DIR))) $(command_seperator) $(ZIPDEP) $(ZIP5FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP5DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP5EXT)/)) $(foreach,j,$(ZIP5LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP5TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
577 .ELSE # "$(ZIP5DIR)" != ""
578 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP5FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP5EXT)/)) $(foreach,j,$(ZIP5LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP5TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
579 .ENDIF # "$(ZIP5DIR)" != ""
580 .ENDIF # "$(common_build_zip)"!=""
581 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
584 $(ZIP5TARGETN) : delzip $(ZIP5DEPS)
585 .IF "$(VERBOSE)" == "TRUE"
586 @echo ------------------------------
587 .ENDIF
588 @echo "Making: " $(@:f)
589 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
590 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
591 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
592 .IF "$(common_build_zip)"!=""
593 .IF "$(ZIP5DIR)" != ""
594 @@-$(GNUCOPY) -p $@ $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT)
595 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP5HELPVAR)_, $(@:db))} $(ZIP5DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP5FLAGS) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $(subst,LANGDIR_away/, $(ZIP5LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
596 $(COMMAND_ECHO)$(IFEXIST) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $(THEN) \
597 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) \
598 $(FI)
599 $(COMMAND_ECHO)$(COPY) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $@.$(INPATH)
600 $(COMMAND_ECHO)$(RM) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT)
601 .ELSE # "$(ZIP5DIR)" != ""
602 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
603 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP5FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP5LIST) $(subst,LANGDIR,{$(subst,$(ZIP5HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
604 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
605 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
606 $(FI)
607 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
608 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
609 .ENDIF # "$(ZIP5DIR)" != ""
610 @@-$(RM) $@
611 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
612 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
613 .ELSE # "$(common_build_zip)"!=""
614 .IF "$(ZIP5DIR)" != ""
615 @@-$(GNUCOPY) -p $@ $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT)
616 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP5HELPVAR)_, $(@:db))} $(ZIP5DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP5FLAGS) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $(subst,LANGDIR_away/, $(ZIP5LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
617 $(COMMAND_ECHO)$(IFEXIST) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $(THEN) \
618 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) \
619 $(FI)
620 $(COMMAND_ECHO)$(COPY) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT) $@
621 $(COMMAND_ECHO)$(RM) $(ZIP5TMP).$(ZIP5TARGET){$(subst,$(ZIP5HELPVAR),_ $(@:db))}$(ZIP5EXT)
622 .ELSE # "$(ZIP5DIR)" != ""
623 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP5FLAGS) $@ $(foreach,j,$(ZIP5LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP5TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
624 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
625 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
626 $(FI)
627 .ENDIF # "$(ZIP5DIR)" != ""
628 .ENDIF # "$(common_build_zip)"!=""
629 .ENDIF
631 # unroll begin
633 .IF "$(GUI)"=="WNT"
634 command_seperator=&&
635 #command_seperator=^
636 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
637 .ELIF "$(GUI)"=="OS2"
638 command_seperator=&&
639 .ELSE
640 command_seperator=;
641 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
643 .ENDIF
645 .IF "$(ZIP6TARGET)"!=""
647 ZIP6EXT*=.zip
648 .IF "$(common_build_zip)"!=""
649 .IF "$(ZIP6LIST:s/LANGDIR//)" == "$(ZIP6LIST)"
650 ZIP6TARGETN=$(COMMONBIN)/$(ZIP6TARGET)$(ZIP6EXT)
651 .ELSE
652 ZIP6TARGETN=$(foreach,i,$(zip6alllangiso) $(COMMONBIN)/$(ZIP6TARGET)_$i$(ZIP6EXT) )
653 .ENDIF
654 .ELSE # "$(common_build_zip)"!=""
655 .IF "$(ZIP6LIST:s/LANGDIR//)" == "$(ZIP6LIST)"
656 ZIP6TARGETN=$(BIN)/$(ZIP6TARGET)$(ZIP6EXT)
657 .ELSE
658 ZIP6TARGETN=$(foreach,i,$(zip6alllangiso) $(BIN)/$(ZIP6TARGET)_$i$(ZIP6EXT) )
659 .ENDIF
660 .ENDIF # "$(common_build_zip)"!=""
661 ZIP6DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP6TARGETN:s/$(ZIP6EXT)/.dpzz/)))
662 ZIPDEPFILES+=$(ZIP6DEPFILE)
664 ZIP6DIR*=$(ZIPDIR)
665 ZIP6FLAGS*=$(ZIPFLAGS)
666 .IF "$(zip6generatedlangs)"!=""
667 zip6langdirs*=$(alllangiso)
668 .ELSE # "$(zip6generatedlangs)"!=""
669 zip6langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP6DIR) . $(ZIP6DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP6DIR) . $(ZIP6DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
670 .ENDIF # "$(zip6generatedlangs)"!=""
671 .IF "$(ZIP6FORCEALLLANG)"!=""
672 zip6alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip6langdirs) $(eq,$i,$j $i $(NULL))))
673 .ELSE # "$(ZIP6ALLLANG)" != ""
674 zip6alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip6langdirs) $(eq,$i,$j $i $(NULL))))
675 .ENDIF # "$(ZIP6ALLLANG)" != ""
676 .ENDIF # "$(ZIP6TARGET)"!=""
678 .IF "$(ZIP6TARGETN)"!=""
680 ZIP6TMP:=$(mktmp iii)
682 $(MISC)/$(TARGET).$(PWD:f).$(ZIP6TARGET).dpzz : $(ZIP6TARGETN)
684 .IF "$(common_build_zip)"!=""
685 ZIP6HELPVAR=$(COMMONBIN)/$(ZIP6TARGET)
686 .ELSE # "$(common_build_zip)"!=""
687 ZIP6HELPVAR=$(BIN)/$(ZIP6TARGET)
688 .ENDIF # "$(common_build_zip)"!=""
690 $(ZIP6DEPFILE) :
691 @echo # > $(MISC)/$(@:f)
692 .IF "$(common_build_zip)"!=""
693 .IF "$(ZIP6DIR)" != ""
694 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP6DIR)
695 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP6DIR))) $(command_seperator) $(ZIPDEP) $(ZIP6FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP6DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP6EXT)/))) $(foreach,j,$(ZIP6LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP6TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
696 .ELSE # "$(ZIP6DIR)" != ""
697 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP6FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP6EXT)/))) $(foreach,j,$(ZIP6LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP6TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
698 .ENDIF # "$(ZIP6DIR)" != ""
699 .ELSE # "$(common_build_zip)"!=""
700 .IF "$(ZIP6DIR)" != ""
701 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP6DIR)
702 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP6DIR))) $(command_seperator) $(ZIPDEP) $(ZIP6FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP6DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP6EXT)/)) $(foreach,j,$(ZIP6LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP6TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
703 .ELSE # "$(ZIP6DIR)" != ""
704 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP6FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP6EXT)/)) $(foreach,j,$(ZIP6LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP6TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
705 .ENDIF # "$(ZIP6DIR)" != ""
706 .ENDIF # "$(common_build_zip)"!=""
707 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
710 $(ZIP6TARGETN) : delzip $(ZIP6DEPS)
711 .IF "$(VERBOSE)" == "TRUE"
712 @echo ------------------------------
713 .ENDIF
714 @echo "Making: " $(@:f)
715 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
716 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
717 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
718 .IF "$(common_build_zip)"!=""
719 .IF "$(ZIP6DIR)" != ""
720 @@-$(GNUCOPY) -p $@ $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT)
721 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP6HELPVAR)_, $(@:db))} $(ZIP6DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP6FLAGS) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $(subst,LANGDIR_away/, $(ZIP6LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
722 $(COMMAND_ECHO)$(IFEXIST) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $(THEN) \
723 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) \
724 $(FI)
725 $(COMMAND_ECHO)$(COPY) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $@.$(INPATH)
726 $(COMMAND_ECHO)$(RM) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT)
727 .ELSE # "$(ZIP6DIR)" != ""
728 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
729 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP6FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP6LIST) $(subst,LANGDIR,{$(subst,$(ZIP6HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
730 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
731 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
732 $(FI)
733 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
734 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
735 .ENDIF # "$(ZIP6DIR)" != ""
736 @@-$(RM) $@
737 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
738 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
739 .ELSE # "$(common_build_zip)"!=""
740 .IF "$(ZIP6DIR)" != ""
741 @@-$(GNUCOPY) -p $@ $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT)
742 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP6HELPVAR)_, $(@:db))} $(ZIP6DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP6FLAGS) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $(subst,LANGDIR_away/, $(ZIP6LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
743 $(COMMAND_ECHO)$(IFEXIST) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $(THEN) \
744 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) \
745 $(FI)
746 $(COMMAND_ECHO)$(COPY) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT) $@
747 $(COMMAND_ECHO)$(RM) $(ZIP6TMP).$(ZIP6TARGET){$(subst,$(ZIP6HELPVAR),_ $(@:db))}$(ZIP6EXT)
748 .ELSE # "$(ZIP6DIR)" != ""
749 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP6FLAGS) $@ $(foreach,j,$(ZIP6LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP6TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
750 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
751 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
752 $(FI)
753 .ENDIF # "$(ZIP6DIR)" != ""
754 .ENDIF # "$(common_build_zip)"!=""
755 .ENDIF
757 # unroll begin
759 .IF "$(GUI)"=="WNT"
760 command_seperator=&&
761 #command_seperator=^
762 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
763 .ELIF "$(GUI)"=="OS2"
764 command_seperator=&&
765 .ELSE
766 command_seperator=;
767 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
769 .ENDIF
771 .IF "$(ZIP7TARGET)"!=""
773 ZIP7EXT*=.zip
774 .IF "$(common_build_zip)"!=""
775 .IF "$(ZIP7LIST:s/LANGDIR//)" == "$(ZIP7LIST)"
776 ZIP7TARGETN=$(COMMONBIN)/$(ZIP7TARGET)$(ZIP7EXT)
777 .ELSE
778 ZIP7TARGETN=$(foreach,i,$(zip7alllangiso) $(COMMONBIN)/$(ZIP7TARGET)_$i$(ZIP7EXT) )
779 .ENDIF
780 .ELSE # "$(common_build_zip)"!=""
781 .IF "$(ZIP7LIST:s/LANGDIR//)" == "$(ZIP7LIST)"
782 ZIP7TARGETN=$(BIN)/$(ZIP7TARGET)$(ZIP7EXT)
783 .ELSE
784 ZIP7TARGETN=$(foreach,i,$(zip7alllangiso) $(BIN)/$(ZIP7TARGET)_$i$(ZIP7EXT) )
785 .ENDIF
786 .ENDIF # "$(common_build_zip)"!=""
787 ZIP7DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP7TARGETN:s/$(ZIP7EXT)/.dpzz/)))
788 ZIPDEPFILES+=$(ZIP7DEPFILE)
790 ZIP7DIR*=$(ZIPDIR)
791 ZIP7FLAGS*=$(ZIPFLAGS)
792 .IF "$(zip7generatedlangs)"!=""
793 zip7langdirs*=$(alllangiso)
794 .ELSE # "$(zip7generatedlangs)"!=""
795 zip7langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP7DIR) . $(ZIP7DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP7DIR) . $(ZIP7DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
796 .ENDIF # "$(zip7generatedlangs)"!=""
797 .IF "$(ZIP7FORCEALLLANG)"!=""
798 zip7alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip7langdirs) $(eq,$i,$j $i $(NULL))))
799 .ELSE # "$(ZIP7ALLLANG)" != ""
800 zip7alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip7langdirs) $(eq,$i,$j $i $(NULL))))
801 .ENDIF # "$(ZIP7ALLLANG)" != ""
802 .ENDIF # "$(ZIP7TARGET)"!=""
804 .IF "$(ZIP7TARGETN)"!=""
806 ZIP7TMP:=$(mktmp iii)
808 $(MISC)/$(TARGET).$(PWD:f).$(ZIP7TARGET).dpzz : $(ZIP7TARGETN)
810 .IF "$(common_build_zip)"!=""
811 ZIP7HELPVAR=$(COMMONBIN)/$(ZIP7TARGET)
812 .ELSE # "$(common_build_zip)"!=""
813 ZIP7HELPVAR=$(BIN)/$(ZIP7TARGET)
814 .ENDIF # "$(common_build_zip)"!=""
816 $(ZIP7DEPFILE) :
817 @echo # > $(MISC)/$(@:f)
818 .IF "$(common_build_zip)"!=""
819 .IF "$(ZIP7DIR)" != ""
820 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP7DIR)
821 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP7DIR))) $(command_seperator) $(ZIPDEP) $(ZIP7FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP7DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP7EXT)/))) $(foreach,j,$(ZIP7LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP7TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
822 .ELSE # "$(ZIP7DIR)" != ""
823 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP7FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP7EXT)/))) $(foreach,j,$(ZIP7LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP7TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
824 .ENDIF # "$(ZIP7DIR)" != ""
825 .ELSE # "$(common_build_zip)"!=""
826 .IF "$(ZIP7DIR)" != ""
827 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP7DIR)
828 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP7DIR))) $(command_seperator) $(ZIPDEP) $(ZIP7FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP7DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP7EXT)/)) $(foreach,j,$(ZIP7LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP7TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
829 .ELSE # "$(ZIP7DIR)" != ""
830 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP7FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP7EXT)/)) $(foreach,j,$(ZIP7LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP7TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
831 .ENDIF # "$(ZIP7DIR)" != ""
832 .ENDIF # "$(common_build_zip)"!=""
833 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
836 $(ZIP7TARGETN) : delzip $(ZIP7DEPS)
837 .IF "$(VERBOSE)" == "TRUE"
838 @echo ------------------------------
839 .ENDIF
840 @echo "Making: " $(@:f)
841 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
842 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
843 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
844 .IF "$(common_build_zip)"!=""
845 .IF "$(ZIP7DIR)" != ""
846 @@-$(GNUCOPY) -p $@ $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT)
847 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP7HELPVAR)_, $(@:db))} $(ZIP7DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP7FLAGS) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $(subst,LANGDIR_away/, $(ZIP7LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
848 $(COMMAND_ECHO)$(IFEXIST) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $(THEN) \
849 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) \
850 $(FI)
851 $(COMMAND_ECHO)$(COPY) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $@.$(INPATH)
852 $(COMMAND_ECHO)$(RM) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT)
853 .ELSE # "$(ZIP7DIR)" != ""
854 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
855 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP7FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP7LIST) $(subst,LANGDIR,{$(subst,$(ZIP7HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
856 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
857 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
858 $(FI)
859 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
860 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
861 .ENDIF # "$(ZIP7DIR)" != ""
862 @@-$(RM) $@
863 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
864 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
865 .ELSE # "$(common_build_zip)"!=""
866 .IF "$(ZIP7DIR)" != ""
867 @@-$(GNUCOPY) -p $@ $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT)
868 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP7HELPVAR)_, $(@:db))} $(ZIP7DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP7FLAGS) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $(subst,LANGDIR_away/, $(ZIP7LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
869 $(COMMAND_ECHO)$(IFEXIST) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $(THEN) \
870 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) \
871 $(FI)
872 $(COMMAND_ECHO)$(COPY) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT) $@
873 $(COMMAND_ECHO)$(RM) $(ZIP7TMP).$(ZIP7TARGET){$(subst,$(ZIP7HELPVAR),_ $(@:db))}$(ZIP7EXT)
874 .ELSE # "$(ZIP7DIR)" != ""
875 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP7FLAGS) $@ $(foreach,j,$(ZIP7LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP7TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
876 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
877 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
878 $(FI)
879 .ENDIF # "$(ZIP7DIR)" != ""
880 .ENDIF # "$(common_build_zip)"!=""
881 .ENDIF
883 # unroll begin
885 .IF "$(GUI)"=="WNT"
886 command_seperator=&&
887 #command_seperator=^
888 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
889 .ELIF "$(GUI)"=="OS2"
890 command_seperator=&&
891 .ELSE
892 command_seperator=;
893 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
895 .ENDIF
897 .IF "$(ZIP8TARGET)"!=""
899 ZIP8EXT*=.zip
900 .IF "$(common_build_zip)"!=""
901 .IF "$(ZIP8LIST:s/LANGDIR//)" == "$(ZIP8LIST)"
902 ZIP8TARGETN=$(COMMONBIN)/$(ZIP8TARGET)$(ZIP8EXT)
903 .ELSE
904 ZIP8TARGETN=$(foreach,i,$(zip8alllangiso) $(COMMONBIN)/$(ZIP8TARGET)_$i$(ZIP8EXT) )
905 .ENDIF
906 .ELSE # "$(common_build_zip)"!=""
907 .IF "$(ZIP8LIST:s/LANGDIR//)" == "$(ZIP8LIST)"
908 ZIP8TARGETN=$(BIN)/$(ZIP8TARGET)$(ZIP8EXT)
909 .ELSE
910 ZIP8TARGETN=$(foreach,i,$(zip8alllangiso) $(BIN)/$(ZIP8TARGET)_$i$(ZIP8EXT) )
911 .ENDIF
912 .ENDIF # "$(common_build_zip)"!=""
913 ZIP8DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP8TARGETN:s/$(ZIP8EXT)/.dpzz/)))
914 ZIPDEPFILES+=$(ZIP8DEPFILE)
916 ZIP8DIR*=$(ZIPDIR)
917 ZIP8FLAGS*=$(ZIPFLAGS)
918 .IF "$(zip8generatedlangs)"!=""
919 zip8langdirs*=$(alllangiso)
920 .ELSE # "$(zip8generatedlangs)"!=""
921 zip8langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP8DIR) . $(ZIP8DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP8DIR) . $(ZIP8DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
922 .ENDIF # "$(zip8generatedlangs)"!=""
923 .IF "$(ZIP8FORCEALLLANG)"!=""
924 zip8alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip8langdirs) $(eq,$i,$j $i $(NULL))))
925 .ELSE # "$(ZIP8ALLLANG)" != ""
926 zip8alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip8langdirs) $(eq,$i,$j $i $(NULL))))
927 .ENDIF # "$(ZIP8ALLLANG)" != ""
928 .ENDIF # "$(ZIP8TARGET)"!=""
930 .IF "$(ZIP8TARGETN)"!=""
932 ZIP8TMP:=$(mktmp iii)
934 $(MISC)/$(TARGET).$(PWD:f).$(ZIP8TARGET).dpzz : $(ZIP8TARGETN)
936 .IF "$(common_build_zip)"!=""
937 ZIP8HELPVAR=$(COMMONBIN)/$(ZIP8TARGET)
938 .ELSE # "$(common_build_zip)"!=""
939 ZIP8HELPVAR=$(BIN)/$(ZIP8TARGET)
940 .ENDIF # "$(common_build_zip)"!=""
942 $(ZIP8DEPFILE) :
943 @echo # > $(MISC)/$(@:f)
944 .IF "$(common_build_zip)"!=""
945 .IF "$(ZIP8DIR)" != ""
946 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP8DIR)
947 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP8DIR))) $(command_seperator) $(ZIPDEP) $(ZIP8FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP8DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP8EXT)/))) $(foreach,j,$(ZIP8LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP8TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
948 .ELSE # "$(ZIP8DIR)" != ""
949 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP8FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP8EXT)/))) $(foreach,j,$(ZIP8LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP8TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
950 .ENDIF # "$(ZIP8DIR)" != ""
951 .ELSE # "$(common_build_zip)"!=""
952 .IF "$(ZIP8DIR)" != ""
953 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP8DIR)
954 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP8DIR))) $(command_seperator) $(ZIPDEP) $(ZIP8FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP8DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP8EXT)/)) $(foreach,j,$(ZIP8LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP8TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
955 .ELSE # "$(ZIP8DIR)" != ""
956 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP8FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP8EXT)/)) $(foreach,j,$(ZIP8LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP8TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
957 .ENDIF # "$(ZIP8DIR)" != ""
958 .ENDIF # "$(common_build_zip)"!=""
959 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
962 $(ZIP8TARGETN) : delzip $(ZIP8DEPS)
963 .IF "$(VERBOSE)" == "TRUE"
964 @echo ------------------------------
965 .ENDIF
966 @echo "Making: " $(@:f)
967 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
968 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
969 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
970 .IF "$(common_build_zip)"!=""
971 .IF "$(ZIP8DIR)" != ""
972 @@-$(GNUCOPY) -p $@ $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT)
973 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP8HELPVAR)_, $(@:db))} $(ZIP8DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP8FLAGS) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $(subst,LANGDIR_away/, $(ZIP8LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
974 $(COMMAND_ECHO)$(IFEXIST) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $(THEN) \
975 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) \
976 $(FI)
977 $(COMMAND_ECHO)$(COPY) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $@.$(INPATH)
978 $(COMMAND_ECHO)$(RM) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT)
979 .ELSE # "$(ZIP8DIR)" != ""
980 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
981 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP8FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP8LIST) $(subst,LANGDIR,{$(subst,$(ZIP8HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
982 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
983 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
984 $(FI)
985 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
986 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
987 .ENDIF # "$(ZIP8DIR)" != ""
988 @@-$(RM) $@
989 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
990 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
991 .ELSE # "$(common_build_zip)"!=""
992 .IF "$(ZIP8DIR)" != ""
993 @@-$(GNUCOPY) -p $@ $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT)
994 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP8HELPVAR)_, $(@:db))} $(ZIP8DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP8FLAGS) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $(subst,LANGDIR_away/, $(ZIP8LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
995 $(COMMAND_ECHO)$(IFEXIST) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $(THEN) \
996 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) \
997 $(FI)
998 $(COMMAND_ECHO)$(COPY) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT) $@
999 $(COMMAND_ECHO)$(RM) $(ZIP8TMP).$(ZIP8TARGET){$(subst,$(ZIP8HELPVAR),_ $(@:db))}$(ZIP8EXT)
1000 .ELSE # "$(ZIP8DIR)" != ""
1001 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP8FLAGS) $@ $(foreach,j,$(ZIP8LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP8TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1002 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
1003 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
1004 $(FI)
1005 .ENDIF # "$(ZIP8DIR)" != ""
1006 .ENDIF # "$(common_build_zip)"!=""
1007 .ENDIF
1009 # unroll begin
1011 .IF "$(GUI)"=="WNT"
1012 command_seperator=&&
1013 #command_seperator=^
1014 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
1015 .ELIF "$(GUI)"=="OS2"
1016 command_seperator=&&
1017 .ELSE
1018 command_seperator=;
1019 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
1021 .ENDIF
1023 .IF "$(ZIP9TARGET)"!=""
1025 ZIP9EXT*=.zip
1026 .IF "$(common_build_zip)"!=""
1027 .IF "$(ZIP9LIST:s/LANGDIR//)" == "$(ZIP9LIST)"
1028 ZIP9TARGETN=$(COMMONBIN)/$(ZIP9TARGET)$(ZIP9EXT)
1029 .ELSE
1030 ZIP9TARGETN=$(foreach,i,$(zip9alllangiso) $(COMMONBIN)/$(ZIP9TARGET)_$i$(ZIP9EXT) )
1031 .ENDIF
1032 .ELSE # "$(common_build_zip)"!=""
1033 .IF "$(ZIP9LIST:s/LANGDIR//)" == "$(ZIP9LIST)"
1034 ZIP9TARGETN=$(BIN)/$(ZIP9TARGET)$(ZIP9EXT)
1035 .ELSE
1036 ZIP9TARGETN=$(foreach,i,$(zip9alllangiso) $(BIN)/$(ZIP9TARGET)_$i$(ZIP9EXT) )
1037 .ENDIF
1038 .ENDIF # "$(common_build_zip)"!=""
1039 ZIP9DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP9TARGETN:s/$(ZIP9EXT)/.dpzz/)))
1040 ZIPDEPFILES+=$(ZIP9DEPFILE)
1042 ZIP9DIR*=$(ZIPDIR)
1043 ZIP9FLAGS*=$(ZIPFLAGS)
1044 .IF "$(zip9generatedlangs)"!=""
1045 zip9langdirs*=$(alllangiso)
1046 .ELSE # "$(zip9generatedlangs)"!=""
1047 zip9langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP9DIR) . $(ZIP9DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP9DIR) . $(ZIP9DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
1048 .ENDIF # "$(zip9generatedlangs)"!=""
1049 .IF "$(ZIP9FORCEALLLANG)"!=""
1050 zip9alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip9langdirs) $(eq,$i,$j $i $(NULL))))
1051 .ELSE # "$(ZIP9ALLLANG)" != ""
1052 zip9alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip9langdirs) $(eq,$i,$j $i $(NULL))))
1053 .ENDIF # "$(ZIP9ALLLANG)" != ""
1054 .ENDIF # "$(ZIP9TARGET)"!=""
1056 .IF "$(ZIP9TARGETN)"!=""
1058 ZIP9TMP:=$(mktmp iii)
1060 $(MISC)/$(TARGET).$(PWD:f).$(ZIP9TARGET).dpzz : $(ZIP9TARGETN)
1062 .IF "$(common_build_zip)"!=""
1063 ZIP9HELPVAR=$(COMMONBIN)/$(ZIP9TARGET)
1064 .ELSE # "$(common_build_zip)"!=""
1065 ZIP9HELPVAR=$(BIN)/$(ZIP9TARGET)
1066 .ENDIF # "$(common_build_zip)"!=""
1068 $(ZIP9DEPFILE) :
1069 @echo # > $(MISC)/$(@:f)
1070 .IF "$(common_build_zip)"!=""
1071 .IF "$(ZIP9DIR)" != ""
1072 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP9DIR)
1073 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP9DIR))) $(command_seperator) $(ZIPDEP) $(ZIP9FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP9DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP9EXT)/))) $(foreach,j,$(ZIP9LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP9TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
1074 .ELSE # "$(ZIP9DIR)" != ""
1075 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP9FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP9EXT)/))) $(foreach,j,$(ZIP9LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP9TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
1076 .ENDIF # "$(ZIP9DIR)" != ""
1077 .ELSE # "$(common_build_zip)"!=""
1078 .IF "$(ZIP9DIR)" != ""
1079 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP9DIR)
1080 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP9DIR))) $(command_seperator) $(ZIPDEP) $(ZIP9FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP9DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP9EXT)/)) $(foreach,j,$(ZIP9LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP9TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
1081 .ELSE # "$(ZIP9DIR)" != ""
1082 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP9FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP9EXT)/)) $(foreach,j,$(ZIP9LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP9TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
1083 .ENDIF # "$(ZIP9DIR)" != ""
1084 .ENDIF # "$(common_build_zip)"!=""
1085 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
1088 $(ZIP9TARGETN) : delzip $(ZIP9DEPS)
1089 .IF "$(VERBOSE)" == "TRUE"
1090 @echo ------------------------------
1091 .ENDIF
1092 @echo "Making: " $(@:f)
1093 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
1094 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
1095 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
1096 .IF "$(common_build_zip)"!=""
1097 .IF "$(ZIP9DIR)" != ""
1098 @@-$(GNUCOPY) -p $@ $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT)
1099 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP9HELPVAR)_, $(@:db))} $(ZIP9DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP9FLAGS) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $(subst,LANGDIR_away/, $(ZIP9LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1100 $(COMMAND_ECHO)$(IFEXIST) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $(THEN) \
1101 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) \
1102 $(FI)
1103 $(COMMAND_ECHO)$(COPY) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $@.$(INPATH)
1104 $(COMMAND_ECHO)$(RM) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT)
1105 .ELSE # "$(ZIP9DIR)" != ""
1106 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
1107 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP9FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP9LIST) $(subst,LANGDIR,{$(subst,$(ZIP9HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1108 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
1109 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
1110 $(FI)
1111 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
1112 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
1113 .ENDIF # "$(ZIP9DIR)" != ""
1114 @@-$(RM) $@
1115 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
1116 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
1117 .ELSE # "$(common_build_zip)"!=""
1118 .IF "$(ZIP9DIR)" != ""
1119 @@-$(GNUCOPY) -p $@ $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT)
1120 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP9HELPVAR)_, $(@:db))} $(ZIP9DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP9FLAGS) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $(subst,LANGDIR_away/, $(ZIP9LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1121 $(COMMAND_ECHO)$(IFEXIST) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $(THEN) \
1122 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) \
1123 $(FI)
1124 $(COMMAND_ECHO)$(COPY) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT) $@
1125 $(COMMAND_ECHO)$(RM) $(ZIP9TMP).$(ZIP9TARGET){$(subst,$(ZIP9HELPVAR),_ $(@:db))}$(ZIP9EXT)
1126 .ELSE # "$(ZIP9DIR)" != ""
1127 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP9FLAGS) $@ $(foreach,j,$(ZIP9LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP9TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1128 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
1129 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
1130 $(FI)
1131 .ENDIF # "$(ZIP9DIR)" != ""
1132 .ENDIF # "$(common_build_zip)"!=""
1133 .ENDIF
1135 # unroll begin
1137 .IF "$(GUI)"=="WNT"
1138 command_seperator=&&
1139 #command_seperator=^
1140 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
1141 .ELIF "$(GUI)"=="OS2"
1142 command_seperator=&&
1143 .ELSE
1144 command_seperator=;
1145 avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
1147 .ENDIF
1149 .IF "$(ZIP10TARGET)"!=""
1151 ZIP10EXT*=.zip
1152 .IF "$(common_build_zip)"!=""
1153 .IF "$(ZIP10LIST:s/LANGDIR//)" == "$(ZIP10LIST)"
1154 ZIP10TARGETN=$(COMMONBIN)/$(ZIP10TARGET)$(ZIP10EXT)
1155 .ELSE
1156 ZIP10TARGETN=$(foreach,i,$(zip10alllangiso) $(COMMONBIN)/$(ZIP10TARGET)_$i$(ZIP10EXT) )
1157 .ENDIF
1158 .ELSE # "$(common_build_zip)"!=""
1159 .IF "$(ZIP10LIST:s/LANGDIR//)" == "$(ZIP10LIST)"
1160 ZIP10TARGETN=$(BIN)/$(ZIP10TARGET)$(ZIP10EXT)
1161 .ELSE
1162 ZIP10TARGETN=$(foreach,i,$(zip10alllangiso) $(BIN)/$(ZIP10TARGET)_$i$(ZIP10EXT) )
1163 .ENDIF
1164 .ENDIF # "$(common_build_zip)"!=""
1165 ZIP10DEPFILE=$(subst,$(COMMON_OUTDIR),$(OUTPATH) $(subst,/bin/,/misc/ $(ZIP10TARGETN:s/$(ZIP10EXT)/.dpzz/)))
1166 ZIPDEPFILES+=$(ZIP10DEPFILE)
1168 ZIP10DIR*=$(ZIPDIR)
1169 ZIP10FLAGS*=$(ZIPFLAGS)
1170 .IF "$(zip10generatedlangs)"!=""
1171 zip10langdirs*=$(alllangiso)
1172 .ELSE # "$(zip10generatedlangs)"!=""
1173 zip10langdirs:=$(shell @-test -d {$(subst,/$(LANGDIR), $(null,$(ZIP10DIR) . $(ZIP10DIR)))}/ && find {$(subst,/$(LANGDIR), $(null,$(ZIP10DIR) . $(ZIP10DIR)))}/ -type d ! -name CVS ! -name ".svn" ! -name "." | sed "s/\.\/\///" | sed "s/\.\///" )
1174 .ENDIF # "$(zip10generatedlangs)"!=""
1175 .IF "$(ZIP10FORCEALLLANG)"!=""
1176 zip10alllangiso:=$(foreach,i,$(completelangiso) $(foreach,j,$(zip10langdirs) $(eq,$i,$j $i $(NULL))))
1177 .ELSE # "$(ZIP10ALLLANG)" != ""
1178 zip10alllangiso*:=$(foreach,i,$(alllangiso) $(foreach,j,$(zip10langdirs) $(eq,$i,$j $i $(NULL))))
1179 .ENDIF # "$(ZIP10ALLLANG)" != ""
1180 .ENDIF # "$(ZIP10TARGET)"!=""
1182 .IF "$(ZIP10TARGETN)"!=""
1184 ZIP10TMP:=$(mktmp iii)
1186 $(MISC)/$(TARGET).$(PWD:f).$(ZIP10TARGET).dpzz : $(ZIP10TARGETN)
1188 .IF "$(common_build_zip)"!=""
1189 ZIP10HELPVAR=$(COMMONBIN)/$(ZIP10TARGET)
1190 .ELSE # "$(common_build_zip)"!=""
1191 ZIP10HELPVAR=$(BIN)/$(ZIP10TARGET)
1192 .ENDIF # "$(common_build_zip)"!=""
1194 $(ZIP10DEPFILE) :
1195 @echo # > $(MISC)/$(@:f)
1196 .IF "$(common_build_zip)"!=""
1197 .IF "$(ZIP10DIR)" != ""
1198 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP10DIR)
1199 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP10DIR))) $(command_seperator) $(ZIPDEP) $(ZIP10FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP10DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP10EXT)/))) $(foreach,j,$(ZIP10LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP10TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
1200 .ELSE # "$(ZIP10DIR)" != ""
1201 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP10FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP10EXT)/))) $(foreach,j,$(ZIP10LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP10TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
1202 .ENDIF # "$(ZIP10DIR)" != ""
1203 .ELSE # "$(common_build_zip)"!=""
1204 .IF "$(ZIP10DIR)" != ""
1205 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP10DIR)
1206 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP10DIR))) $(command_seperator) $(ZIPDEP) $(ZIP10FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP10DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP10EXT)/)) $(foreach,j,$(ZIP10LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP10TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
1207 .ELSE # "$(ZIP10DIR)" != ""
1208 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP10FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP10EXT)/)) $(foreach,j,$(ZIP10LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP10TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
1209 .ENDIF # "$(ZIP10DIR)" != ""
1210 .ENDIF # "$(common_build_zip)"!=""
1211 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
1214 $(ZIP10TARGETN) : delzip $(ZIP10DEPS)
1215 .IF "$(VERBOSE)" == "TRUE"
1216 @echo ------------------------------
1217 .ENDIF
1218 @echo "Making: " $(@:f)
1219 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))
1220 @$(eq,$?,$(?:s/delzip/zzz/) noop echo ) rebuilding zipfiles
1221 @echo ------------------------------ $(eq,$?,$(?:s/delzip/zzz/) >&$(NULLDEV) )
1222 .IF "$(common_build_zip)"!=""
1223 .IF "$(ZIP10DIR)" != ""
1224 @@-$(GNUCOPY) -p $@ $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT)
1225 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP10HELPVAR)_, $(@:db))} $(ZIP10DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP10FLAGS) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $(subst,LANGDIR_away/, $(ZIP10LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1226 $(COMMAND_ECHO)$(IFEXIST) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $(THEN) \
1227 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) \
1228 $(FI)
1229 $(COMMAND_ECHO)$(COPY) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $@.$(INPATH)
1230 $(COMMAND_ECHO)$(RM) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT)
1231 .ELSE # "$(ZIP10DIR)" != ""
1232 @@-$(GNUCOPY) -p $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
1233 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP10FLAGS) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(foreach,j,$(ZIP10LIST) $(subst,LANGDIR,{$(subst,$(ZIP10HELPVAR)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1234 $(COMMAND_ECHO)$(IFEXIST) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $(THEN) \
1235 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) \
1236 $(FI)
1237 @@-$(GNUCOPY) -p $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@) $@.$(INPATH)
1238 @-$(RM) $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@)
1239 .ENDIF # "$(ZIP10DIR)" != ""
1240 @@-$(RM) $@
1241 @$(IFEXIST) $@.$(INPATH) $(THEN) $(RENAME:s/+//) $@.$(INPATH) $@ $(FI)
1242 # @$(IFEXIST) $@ $(THEN) $(TOUCH) $@ $(FI) # even if it's not used...
1243 .ELSE # "$(common_build_zip)"!=""
1244 .IF "$(ZIP10DIR)" != ""
1245 @@-$(GNUCOPY) -p $@ $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT)
1246 $(COMMAND_ECHO)-$(CDD) $(subst,LANGDIR,{$(subst,$(ZIP10HELPVAR)_, $(@:db))} $(ZIP10DIR)) $(command_seperator) zip $(ZIP_VERBOSITY) $(ZIP10FLAGS) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $(subst,LANGDIR_away/, $(ZIP10LIST:s/LANGDIR/LANGDIR_away/)) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1247 $(COMMAND_ECHO)$(IFEXIST) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $(THEN) \
1248 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) \
1249 $(FI)
1250 $(COMMAND_ECHO)$(COPY) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT) $@
1251 $(COMMAND_ECHO)$(RM) $(ZIP10TMP).$(ZIP10TARGET){$(subst,$(ZIP10HELPVAR),_ $(@:db))}$(ZIP10EXT)
1252 .ELSE # "$(ZIP10DIR)" != ""
1253 $(COMMAND_ECHO)zip $(ZIP_VERBOSITY) $(ZIP10FLAGS) $@ $(foreach,j,$(ZIP10LIST) $(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP10TARGET)_, $(@:db))} $j )) -x delzip $(avoid_cvs_dir) $(CHECKZIPRESULT)
1254 $(COMMAND_ECHO)$(IFEXIST) $@ $(THEN) \
1255 $(PERL) -w $(SOLARENV)/bin/cleanzip.pl $@ \
1256 $(FI)
1257 .ENDIF # "$(ZIP10DIR)" != ""
1258 .ENDIF # "$(common_build_zip)"!=""
1259 .ENDIF