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