(file) Return to message.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

  1 humberto 1.7 #include $(ROOT)/mak/common.mak
  2              
  3              ################################################################################
  4              ##
  5              ## Build list of bundle names.
  6              ##
  7              ###############################################################################
  8              
  9              # If we are using ICU resource bundles, then the compiled bundles are .res files
 10              # since the individual makefiles do not specify a root package file, one is appended to the target list
 11              ifdef ICU_ROOT
 12              	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
 13              	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
 14              	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
 15              endif
 16              
 17              ################################################################################
 18              ##
 19              ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
 20              ##                  					   the exception to the rule: since package_root.txt does not exist,
 21              ##									   one has to be generated from one of the existing package_lang.txt files.
 22 humberto 1.7 ##									   this defaults to package_en.txt unless the appropriate vars are set.
 23              ##									   the selected/or default package file is processed and converted into
 24              ##									   an intermediate package_root.rb file, this file is then compiled into its corresponding
 25              ##									   package_root.res file
 26              ##
 27              ################################################################################
 28              
 29              # Rule for ICU resource bundles
 30              ifdef ICU_ROOT
 31              
 32              $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
 33              	$(MKDIRHIER) $(MSG_DIR)
 34              	$(MSG_COMPILE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
 35              	@ $(ECHO)
 36              
 37              $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
 38              	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile 
 39              	$(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
 40              
 41              $(MSG_DIR)/%.res: %.txt $(ERROR)
 42              	$(MKDIRHIER) $(MSG_DIR)
 43 humberto 1.7 	$(MSG_COMPILE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
 44              	@ $(ECHO)
 45              
 46              endif
 47              
 48              ################################################################################
 49              ##
 50              ## Clean rules:
 51              ##
 52              ################################################################################
 53              
 54              # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed 
 55              # from the source directory
 56              FILES_TO_CLEAN = $(MSG_BUNDLES)
 57              FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
 58              
 59              ifdef ICU_ROOT
 60              include $(ROOT)/mak/clean.mak
 61              else
 62              clean:
 63              endif
 64 humberto 1.7 
 65              ################################################################################
 66              ##
 67              ## Build list of object names:
 68              ##
 69              ################################################################################
 70              
 71              include $(ROOT)/mak/objects.mak
 72              
 73              depend: 
 74              
 75              include $(ROOT)/mak/build.mak
 76              
 77              include $(ROOT)/mak/docxx.mak
 78              
 79              include $(ROOT)/mak/sub.mak
 80              
 81              include $(ROOT)/mak/misc.mak
 82              
 83              tests: $(ERROR)
 84              
 85 humberto 1.7 poststarttests: $(ERROR)
 86 kumpf    1.6 
 87              #include $(ROOT)/mak/common.mak
 88              
 89              ################################################################################
 90              ##
 91              ## Build list of bundle names.
 92              ##
 93              ###############################################################################
 94              
 95              # If we are using ICU resource bundles, then the compiled bundles are .res files
 96              # since the individual makefiles do not specify a root package file, one is appended to the target list
 97              ifdef ICU_ROOT
 98              	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
 99              	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
100              	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
101              endif
102              
103              ################################################################################
104              ##
105              ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
106              ## the exception to the rule: since package_root.txt does not exist,
107 kumpf    1.6 ## one has to be generated from one of the existing package_lang.txt files.
108              ## this defaults to package_en.txt unless the appropriate vars are set.
109              ## the selected/or default package file is processed and converted into
110              ## an intermediate package_root.rb file, this file is then compiled into its corresponding
111              ## package_root.res file
112              ##
113              ################################################################################
114              
115              # Rule for ICU resource bundles
116              ifdef ICU_ROOT
117              
118              $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
119              	$(MKDIRHIER) $(MSG_DIR)
120              	$(MSG_COMPILE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
121              	@ $(ECHO)
122              
123              $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
124 humberto 1.7 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
125 kumpf    1.6 	$(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
126              
127              $(MSG_DIR)/%.res: %.txt $(ERROR)
128              	$(MKDIRHIER) $(MSG_DIR)
129              	$(MSG_COMPILE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
130              	@ $(ECHO)
131              
132              endif
133              
134              ################################################################################
135              ##
136              ## Clean rules:
137              ##
138              ################################################################################
139              
140              # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed
141              # from the source directory
142              FILES_TO_CLEAN = $(MSG_BUNDLES)
143              FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
144              
145              ifdef ICU_ROOT
146 kumpf    1.6 include $(ROOT)/mak/clean.mak
147              else
148              clean:
149              endif
150              
151              ################################################################################
152              ##
153              ## Build list of object names:
154              ##
155              ################################################################################
156              
157              include $(ROOT)/mak/objects.mak
158              
159              depend: 
160              
161              include $(ROOT)/mak/build.mak
162              
163              include $(ROOT)/mak/docxx.mak
164              
165              include $(ROOT)/mak/sub.mak
166              
167 kumpf    1.6 include $(ROOT)/mak/misc.mak
168              
169              tests: $(ERROR)
170              
171              poststarttests: $(ERROR)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2