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