< prev index next >

make/common/TextFileProcessing.gmk

Print this page

        

*** 21,39 **** # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # ! define EvalDebugWrapper ! $(if $(DEBUG_$1), ! $(info -------- <<< Begin expansion of $1) ! $(info $2) ! $(info -------- >>> End expansion of $1) ! ) ! ! $2 ! endef # Helper function for SetupTextFileProcessing; adds a rule for a single file # to be processed. # param 1 = The namespace argument, e.g. BUILD_VERSION_FILE # param 2 = the source file name (full path) --- 21,33 ---- # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # ! ifeq (,$(_MAKEBASE_GMK)) ! $(error You must include MakeBase.gmk prior to including TextFileProcessing.gmk) ! endif # Helper function for SetupTextFileProcessing; adds a rule for a single file # to be processed. # param 1 = The namespace argument, e.g. BUILD_VERSION_FILE # param 2 = the source file name (full path)
*** 50,64 **** $(MV) '$$@.replacements.tmp' '$$@' $1 += $(strip $3)/$(strip $4) endef ! # Setup a text file for processing, in which specified markers are replaced with ! # a given text, or with the contents of a given file. # ! # param 1 is the name space for this setup, e.g. BUILD_VERSION_FILE ! # param 2, 3, .. etc are named args: # SOURCE_DIRS one or more directory roots to search for files to process # SOURCE_FILES complete paths to one or more files to process # OUTPUT_DIR the directory where we store the processed files. # OUTPUT_FILE the name of the resulting file. Only allowed if processing a # single file. --- 44,60 ---- $(MV) '$$@.replacements.tmp' '$$@' $1 += $(strip $3)/$(strip $4) endef ! # Setup make rules for processing one or more text files, in which specified ! # markers are replaced with a given text, or with the contents of a given file. ! # ! # Parameter 1 is the name of the rule. This name is used as variable prefix, ! # and the targets generated are listed in a variable by that name. # ! # Remaining parameters are named arguments. These include: # SOURCE_DIRS one or more directory roots to search for files to process # SOURCE_FILES complete paths to one or more files to process # OUTPUT_DIR the directory where we store the processed files. # OUTPUT_FILE the name of the resulting file. Only allowed if processing a # single file.
< prev index next >