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

  1 a.dunfey 1.11.2.1 #//%2006////////////////////////////////////////////////////////////////////////
  2 martin   1.10     #//
  3                   #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4                   #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5                   #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6                   #// IBM Corp.; EMC Corporation, The Open Group.
  7                   #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8                   #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9                   #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10                   #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 a.dunfey 1.11.2.1 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12                   #// EMC Corporation; Symantec Corporation; The Open Group.
 13 martin   1.10     #//
 14                   #// Permission is hereby granted, free of charge, to any person obtaining a copy
 15                   #// of this software and associated documentation files (the "Software"), to
 16                   #// deal in the Software without restriction, including without limitation the
 17                   #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18                   #// sell copies of the Software, and to permit persons to whom the Software is
 19                   #// furnished to do so, subject to the following conditions:
 20                   #// 
 21                   #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22                   #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                   #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24                   #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                   #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                   #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27                   #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                   #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                   #//
 30                   #//==============================================================================
 31 kumpf    1.6      
 32                   ################################################################################
 33                   ##
 34                   ## Build list of bundle names.
 35                   ##
 36                   ###############################################################################
 37                   
 38                   # If we are using ICU resource bundles, then the compiled bundles are .res files
 39                   # since the individual makefiles do not specify a root package file, one is appended to the target list
 40                   ifdef ICU_ROOT
 41                   	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
 42                   	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
 43                   	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
 44                   endif
 45                   
 46                   ################################################################################
 47                   ##
 48                   ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
 49 humberto 1.9      ##                  					   the exception to the rule: since package_root.txt does not exist,
 50                   ##									   one has to be generated from one of the existing package_lang.txt files.
 51                   ##									   this defaults to package_en.txt unless the appropriate vars are set.
 52                   ##									   the selected/or default package file is processed and converted into
 53                   ##									   an intermediate package_root.rb file, this file is then compiled into its corresponding
 54                   ##									   package_root.res file
 55 kumpf    1.6      ##
 56                   ################################################################################
 57                   
 58                   # Rule for ICU resource bundles
 59                   ifdef ICU_ROOT
 60 jim.wunderlich 1.11     messages: $(MSG_BUNDLES)
 61 kumpf          1.6      
 62                         $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
 63                         	$(MKDIRHIER) $(MSG_DIR)
 64 chuck          1.8      	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
 65 kumpf          1.6      	@ $(ECHO)
 66                         
 67                         $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
 68 humberto       1.9      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile 
 69 kumpf          1.6      	$(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
 70                         
 71                         $(MSG_DIR)/%.res: %.txt $(ERROR)
 72                         	$(MKDIRHIER) $(MSG_DIR)
 73 chuck          1.8      	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
 74 kumpf          1.6      	@ $(ECHO)
 75                         
 76                         endif
 77                         
 78                         ################################################################################
 79                         ##
 80                         ## Clean rules:
 81                         ##
 82                         ################################################################################
 83                         
 84 humberto       1.9      # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed 
 85 kumpf          1.6      # from the source directory
 86                         FILES_TO_CLEAN = $(MSG_BUNDLES)
 87                         FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
 88                         
 89                         ifdef ICU_ROOT
 90                         include $(ROOT)/mak/clean.mak
 91                         else
 92                         clean:
 93                         endif
 94                         
 95 jim.wunderlich 1.11     depend:
 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      

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2