(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 humberto 1.7  #include $(ROOT)/mak/common.mak
 30               
 31               include $(ROOT)/mak/objects.mak
 32               
 33               depend: 
 34               
 35               include $(ROOT)/mak/build.mak
 36               
 37               include $(ROOT)/mak/docxx.mak
 38               
 39               include $(ROOT)/mak/sub.mak
 40               
 41               include $(ROOT)/mak/misc.mak
 42               
 43 kumpf    1.6  
 44               ################################################################################
 45               ##
 46               ## Build list of bundle names.
 47               ##
 48               ###############################################################################
 49               
 50               # If we are using ICU resource bundles, then the compiled bundles are .res files
 51               # since the individual makefiles do not specify a root package file, one is appended to the target list
 52               ifdef ICU_ROOT
 53               	TMP_MSG_BUNDLES = $(foreach i,$(MSG_SOURCES),$(MSG_DIR)/$i)
 54               	MSG_BUNDLES = $(TMP_MSG_BUNDLES:.txt=.res)
 55               	MSG_BUNDLES += $(MSG_DIR)/$(MSG_PACKAGE)_root.res
 56               endif
 57               
 58               ################################################################################
 59               ##
 60               ## Message compile rules: the normal rule is from package_lang.txt -> package_lang.res
 61 humberto 1.9  ##                  					   the exception to the rule: since package_root.txt does not exist,
 62               ##									   one has to be generated from one of the existing package_lang.txt files.
 63               ##									   this defaults to package_en.txt unless the appropriate vars are set.
 64               ##									   the selected/or default package file is processed and converted into
 65               ##									   an intermediate package_root.rb file, this file is then compiled into its corresponding
 66               ##									   package_root.res file
 67 kumpf    1.6  ##
 68               ################################################################################
 69               
 70               # Rule for ICU resource bundles
 71               ifdef ICU_ROOT
 72               
 73               $(MSG_DIR)/$(MSG_PACKAGE)_root.res: $(MSG_PACKAGE)_root.rb $(ERROR)
 74               	$(MKDIRHIER) $(MSG_DIR)
 75 chuck    1.8  	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $(MSG_PACKAGE)_root.rb
 76 kumpf    1.6  	@ $(ECHO)
 77               
 78               $(MSG_PACKAGE)_root.rb: $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt $(ERROR)
 79 humberto 1.9  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile 
 80 kumpf    1.6  	$(CNV_ROOT_CMD) $(CNV_ROOT_FLAGS) $(MSG_PACKAGE)$(MSG_ROOT_SOURCE).txt
 81               
 82               $(MSG_DIR)/%.res: %.txt $(ERROR)
 83               	$(MKDIRHIER) $(MSG_DIR)
 84 chuck    1.8  	$(MSG_COMPILE) -p $(MSG_PACKAGE) -d $(MSG_DIR) $(MSG_FLAGS) $*.txt
 85 kumpf    1.6  	@ $(ECHO)
 86               
 87               endif
 88               
 89               ################################################################################
 90               ##
 91               ## Clean rules:
 92               ##
 93               ################################################################################
 94               
 95 humberto 1.9  # these files are cleaned when a user runs make clean, the intermediate package_root.rb file is removed 
 96 kumpf    1.6  # from the source directory
 97               FILES_TO_CLEAN = $(MSG_BUNDLES)
 98               FILES_TO_CLEAN += $(ROOT)/src/$(DIR)/*.rb
 99               
100               ifdef ICU_ROOT
101               include $(ROOT)/mak/clean.mak
102               else
103               clean:
104               endif
105               
106               ################################################################################
107               ##
108               ## Build list of object names:
109               ##
110               ################################################################################
111               
112               
113               tests: $(ERROR)
114               
115               poststarttests: $(ERROR)
116 humberto 1.9  

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2