(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              include $(ROOT)/mak/objects.mak
 4              
 5              depend: 
 6              
 7              include $(ROOT)/mak/build.mak
 8              
 9              include $(ROOT)/mak/docxx.mak
10              
11              include $(ROOT)/mak/sub.mak
12              
13              include $(ROOT)/mak/misc.mak
14              
15 kumpf    1.6 
16              ################################################################################
17              ##
18              ## Build list of bundle names.
19              ##
20              ###############################################################################
21              
22              # If we are using ICU resource bundles, then the compiled bundles are .res files
23              # since the individual makefiles do not specify a root package file, one is appended to the target list
24              ifdef ICU_ROOT
25              	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
26              	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
27              	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
28              endif
29              
30              ################################################################################
31              ##
32              ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
33 humberto 1.9 ##                  					   the exception to the rule: since package_root.txt does not exist,
34              ##									   one has to be generated from one of the existing package_lang.txt files.
35              ##									   this defaults to package_en.txt unless the appropriate vars are set.
36              ##									   the selected/or default package file is processed and converted into
37              ##									   an intermediate package_root.rb file, this file is then compiled into its corresponding
38              ##									   package_root.res file
39 kumpf    1.6 ##
40              ################################################################################
41              
42              # Rule for ICU resource bundles
43              ifdef ICU_ROOT
44              
45              $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
46              	$(MKDIRHIER) $(MSG_DIR)
47 chuck    1.8 	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
48 kumpf    1.6 	@ $(ECHO)
49              
50              $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
51 humberto 1.9 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile 
52 kumpf    1.6 	$(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
53              
54              $(MSG_DIR)/%.res: %.txt $(ERROR)
55              	$(MKDIRHIER) $(MSG_DIR)
56 chuck    1.8 	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
57 kumpf    1.6 	@ $(ECHO)
58              
59              endif
60              
61              ################################################################################
62              ##
63              ## Clean rules:
64              ##
65              ################################################################################
66              
67 humberto 1.9 # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed 
68 kumpf    1.6 # from the source directory
69              FILES_TO_CLEAN = $(MSG_BUNDLES)
70              FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
71              
72              ifdef ICU_ROOT
73              include $(ROOT)/mak/clean.mak
74              else
75              clean:
76              endif
77              
78              ################################################################################
79              ##
80              ## Build list of object names:
81              ##
82              ################################################################################
83              
84              
85              tests: $(ERROR)
86              
87              poststarttests: $(ERROR)
88 humberto 1.9 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2