tg_zip.mk (534c536d) tg_zip.mk (681b9d08)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#######################################################
25# unroll begin
26
27.IF "$(GUI)"=="WNT"
28command_seperator=&&
29#command_seperator=^
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 13 unchanged lines hidden (view full) ---

22
23
24#######################################################
25# unroll begin
26
27.IF "$(GUI)"=="WNT"
28command_seperator=&&
29#command_seperator=^
30EQ=
30avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
31.ELIF "$(GUI)"=="OS2"
32command_seperator=&&
31avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
32.ELIF "$(GUI)"=="OS2"
33command_seperator=&&
34EQ=\\
35avoid_cvs_dir=-x \"*CVS*\" -x \"*.svn*\"
33.ELSE
34command_seperator=;
36.ELSE
37command_seperator=;
38EQ=
35avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
36
37.ENDIF
38
39.IF "$(ZIP$(TNR)TARGET)"!=""
40
41ZIP$(TNR)EXT*=.zip
42.IF "$(common_build_zip)"!=""

--- 38 unchanged lines hidden (view full) ---

81ZIP$(TNR)HELPVAR=$(BIN)/$(ZIP$(TNR)TARGET)
82.ENDIF # "$(common_build_zip)"!=""
83
84$(ZIP$(TNR)DEPFILE) :
85 @echo # > $(MISC)/$(@:f)
86.IF "$(common_build_zip)"!=""
87.IF "$(ZIP$(TNR)DIR)" != ""
88 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP$(TNR)DIR)
39avoid_cvs_dir=-x "*CVS*" -x "*.svn*"
40
41.ENDIF
42
43.IF "$(ZIP$(TNR)TARGET)"!=""
44
45ZIP$(TNR)EXT*=.zip
46.IF "$(common_build_zip)"!=""

--- 38 unchanged lines hidden (view full) ---

85ZIP$(TNR)HELPVAR=$(BIN)/$(ZIP$(TNR)TARGET)
86.ENDIF # "$(common_build_zip)"!=""
87
88$(ZIP$(TNR)DEPFILE) :
89 @echo # > $(MISC)/$(@:f)
90.IF "$(common_build_zip)"!=""
91.IF "$(ZIP$(TNR)DIR)" != ""
92 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP$(TNR)DIR)
89 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR))) $(command_seperator) $(ZIPDEP) $(ZIP$(TNR)FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/))) $(foreach,j,$(ZIP$(TNR)LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP$(TNR)TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
93 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR))) $(command_seperator) $(ZIPDEP) $(ZIP$(TNR)FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR)))/ $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/))) $(foreach,j,$(ZIP$(TNR)LIST) $(EQ)"{$(subst,LANGDIR,{$(subst,$(ZIP$(TNR)TARGET)_, $(@:f:b))} $j )}$(EQ)") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
90.ELSE # "$(ZIP$(TNR)DIR)" != ""
94.ELSE # "$(ZIP$(TNR)DIR)" != ""
91 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP$(TNR)FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/))) $(foreach,j,$(ZIP$(TNR)LIST) "{$(subst,LANGDIR,{$(subst,$(ZIP$(TNR)TARGET)_, $(@:f:b))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
95 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP$(TNR)FLAGS) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/))) $(foreach,j,$(ZIP$(TNR)LIST) $(EQ)"{$(subst,LANGDIR,{$(subst,$(ZIP$(TNR)TARGET)_, $(@:f:b))} $j )}$(EQ)") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
92.ENDIF # "$(ZIP$(TNR)DIR)" != ""
93.ELSE # "$(common_build_zip)"!=""
94.IF "$(ZIP$(TNR)DIR)" != ""
95 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP$(TNR)DIR)
96.ENDIF # "$(ZIP$(TNR)DIR)" != ""
97.ELSE # "$(common_build_zip)"!=""
98.IF "$(ZIP$(TNR)DIR)" != ""
99 $(COMMAND_ECHO)-$(MKDIRHIER) $(ZIP$(TNR)DIR)
96 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR))) $(command_seperator) $(ZIPDEP) $(ZIP$(TNR)FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/)) $(foreach,j,$(ZIP$(TNR)LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP$(TNR)TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
100 $(COMMAND_ECHO)$(CDD) $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR))) $(command_seperator) $(ZIPDEP) $(ZIP$(TNR)FLAGS) -prefix $(subst,LANGDIR,. $(subst,/LANGDIR, $(ZIP$(TNR)DIR)))/ $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/)) $(foreach,j,$(ZIP$(TNR)LIST) $(EQ)"{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP$(TNR)TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}$(EQ)") $(avoid_cvs_dir) >> $(PWD)/$(PRJ)/$(ROUT)/misc/$(@:f)
97.ELSE # "$(ZIP$(TNR)DIR)" != ""
101.ELSE # "$(ZIP$(TNR)DIR)" != ""
98 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP$(TNR)FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/)) $(foreach,j,$(ZIP$(TNR)LIST) "{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP$(TNR)TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
102 $(COMMAND_ECHO)-$(ZIPDEP) $(ZIP$(TNR)FLAGS) $(subst,/misc/,/bin/ $(@:s/.dpzz/$(ZIP$(TNR)EXT)/)) $(foreach,j,$(ZIP$(TNR)LIST) $(EQ)"{$(subst,LANGDIR,{$(subst,$(BIN)/$(ZIP$(TNR)TARGET)_, $(subst,/misc/,/bin/ $(@:db)))} $j )}$(EQ)") $(avoid_cvs_dir) >> $(MISC)/$(@:f)
99.ENDIF # "$(ZIP$(TNR)DIR)" != ""
100.ENDIF # "$(common_build_zip)"!=""
101 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
102
103
104$(ZIP$(TNR)TARGETN) : delzip $(ZIP$(TNR)DEPS)
105 @echo "Making: " $(@:f)
106 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))

--- 46 unchanged lines hidden ---
103.ENDIF # "$(ZIP$(TNR)DIR)" != ""
104.ENDIF # "$(common_build_zip)"!=""
105 @echo $(@:n:s#\#/#) : makefile.mk >> $(MISC)/$(@:f)
106
107
108$(ZIP$(TNR)TARGETN) : delzip $(ZIP$(TNR)DEPS)
109 @echo "Making: " $(@:f)
110 @@$(!eq,$?,$(?:s/delzip/zzz/) -$(RM) echo) $(uniq $@ $(subst,$(COMMON_OUTDIR),$(OUTPATH) $@))

--- 46 unchanged lines hidden ---