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