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

  1 martin 1.10 #//%2005////////////////////////////////////////////////////////////////////////
  2             #//
  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             #//
 12             #// Permission is hereby granted, free of charge, to any person obtaining a copy
 13             #// of this software and associated documentation files (the "Software"), to
 14             #// deal in the Software without restriction, including without limitation the
 15             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16             #// sell copies of the Software, and to permit persons to whom the Software is
 17             #// furnished to do so, subject to the following conditions:
 18             #// 
 19             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 martin 1.10 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27             #//
 28             #//==============================================================================
 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             ifdef ICU_ROOT
 39             	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               ifdef ICU_ROOT
 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                     ifdef ICU_ROOT
 88                     include $(ROOT)/mak/clean.mak
 89                     else
 90                     clean:
 91                     endif
 92                     
 93 jim.wunderlich 1.11 depend:
 94                     
 95 kumpf          1.6  ################################################################################
 96                     ##
 97                     ## Build list of object names:
 98                     ##
 99                     ################################################################################
100                     
101                     
102                     tests: $(ERROR)
103                     
104                     poststarttests: $(ERROR)
105 humberto       1.9  

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2