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

 1 humberto 1.5 
 2              #include $(ROOT)/mak/common.mak
 3              
 4              ################################################################################
 5              ##
 6              ## Build list of bundle names.
 7              ##
 8              ###############################################################################
 9              
10              # If we are using ICU resource bundles, then the compiled bundles are .res files
11              # since the individual makefiles do not specify a root package file, one is appended to the target list
12              ifdef ICU_ROOT
13              	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
14              	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
15              	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
16              endif
17              
18              ################################################################################
19              ##
20              ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
21              ##                  					   the exception to the rule: since package_root.txt does not exist,
22 humberto 1.5 ##									   one has to be generated from one of the existing package_lang.txt files.
23              ##									   this defaults to package_en.txt unless the appropriate vars are set.
24              ##									   the selected/or default package file is processed and converted into
25              ##									   an intermediate package_root.rb file, this file is then compiled into its corresponding
26              ##									   package_root.res file
27              ##
28              ################################################################################
29              
30              # Rule for ICU resource bundles
31              ifdef ICU_ROOT
32              
33              $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
34              	$(MKDIRHIER) $(MSG_DIR)
35              	$(MSG_COMPILE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
36              	@ $(ECHO)
37              
38              $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
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.5 	$(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.5 
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.5 poststarttests: $(ERROR)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2