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