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