1 martin 1.15 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.16 #//
|
3 martin 1.15 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.16 #//
|
10 martin 1.15 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.16 #//
|
17 martin 1.15 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.16 #//
|
20 martin 1.15 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.16 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.15 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.16 #//
|
28 martin 1.15 #//////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.6
30 ################################################################################
31 ##
32 ## Build list of bundle names.
33 ##
34 ###############################################################################
35
36 # If we are using ICU resource bundles, then the compiled bundles are .res files
37 # since the individual makefiles do not specify a root package file, one is appended to the target list
|
38 denise.eckstein 1.13 ifeq ($(PEGASUS_HAS_ICU), true)
|
39 kumpf 1.6 TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
40 MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
41 MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
42 endif
43
44 ################################################################################
45 ##
46 ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
|
47 humberto 1.9 ## the exception to the rule: since package_root.txt does not exist,
48 ## one has to be generated from one of the existing package_lang.txt files.
49 ## this defaults to package_en.txt unless the appropriate vars are set.
50 ## the selected/or default package file is processed and converted into
51 ## an intermediate package_root.rb file, this file is then compiled into its corresponding
52 ## package_root.res file
|
53 kumpf 1.6 ##
54 ################################################################################
55
56 # Rule for ICU resource bundles
|
57 denise.eckstein 1.13 ifeq ($(PEGASUS_HAS_ICU), true)
|
58 jim.wunderlich 1.11 messages: $(MSG_BUNDLES)
|
59 kumpf 1.6
60 $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
61 $(MKDIRHIER) $(MSG_DIR)
|
62 chuck 1.8 $(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
|
63 kumpf 1.6 @ $(ECHO)
64
65 $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
|
66 humberto 1.9 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
|
67 kumpf 1.6 $(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
68
69 $(MSG_DIR)/%.res: %.txt $(ERROR)
70 $(MKDIRHIER) $(MSG_DIR)
|
71 chuck 1.8 $(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
|
72 kumpf 1.6 @ $(ECHO)
73
74 endif
75
76 ################################################################################
77 ##
78 ## Clean rules:
79 ##
80 ################################################################################
81
|
82 humberto 1.9 # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed
|
83 kumpf 1.6 # from the source directory
84 FILES_TO_CLEAN = $(MSG_BUNDLES)
85 FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
86
|
87 denise.eckstein 1.13 ifeq ($(PEGASUS_HAS_ICU), true)
|
88 kumpf 1.6 include $(ROOT)/mak/clean.mak
89 else
90 clean:
91 endif
92
|
93 jim.wunderlich 1.11 depend:
94
|
95 denise.eckstein 1.14 general:
96
|
97 kumpf 1.6 ################################################################################
98 ##
99 ## Build list of object names:
100 ##
101 ################################################################################
102
103
104 tests: $(ERROR)
105
106 poststarttests: $(ERROR)
|
107 humberto 1.9
|