82 variable_help: variable_help_intro variable_list variable_help_end 83 variable_help_intro: 84 @$(ECHO) "--- Common Variables ---" 85 variable_help_end: 86 @$(ECHO) " " 87 88 # One line descriptions for the variables 89 OUTPUTDIR.desc = Output directory 90 PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count 91 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: 92 BOOTDIR.desc = JDK used to boot the build 93 LANGTOOLS_DIST.desc = langtools dist area used to build 94 CORBA_DIST.desc = corba dist area 95 JAXP_DIST.desc = jaxp dist area 96 JAXWS_DIST.desc = jaxws dist area 97 JDK_IMPORT_PATH.desc = JDK used to import components of the build 98 COMPILER_PATH.desc = Compiler install directory 99 CACERTS_FILE.desc = Location of certificates file 100 DEVTOOLS_PATH.desc = Directory containing zip and unzip 101 CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files 102 DXSDK_PATH.desc = Root directory of DirectX SDK 103 104 # Make variables to print out (description and value) 105 VARIABLE_PRINTVAL_LIST += \ 106 OUTPUTDIR \ 107 PARALLEL_COMPILE_JOBS \ 108 SLASH_JAVA \ 109 BOOTDIR \ 110 LANGTOOLS_DIST \ 111 JAXWS_DIST \ 112 CORBA_DIST \ 113 JAXP_DIST \ 114 JDK_IMPORT_PATH \ 115 COMPILER_PATH \ 116 CACERTS_FILE \ 117 DEVTOOLS_PATH 118 119 # Make variables that should refer to directories that exist 120 VARIABLE_CHECKDIR_LIST += \ 121 SLASH_JAVA \ 122 BOOTDIR \ 123 JDK_IMPORT_PATH \ 124 COMPILER_PATH \ 125 DEVTOOLS_PATH 126 127 # Make variables that should refer to files that exist 128 VARIABLE_CHECKFIL_LIST += \ 129 CACERTS_FILE 130 131 # Some are windows specific 132 ifeq ($(PLATFORM), windows) 133 134 VARIABLE_PRINTVAL_LIST += \ 135 DXSDK_PATH 136 137 VARIABLE_CHECKDIR_LIST += \ 138 DXSDK_PATH 139 140 endif 141 142 # For pattern rules below, so all are treated the same 143 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) 144 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) 145 DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) 146 147 # Complete variable check 148 variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) 149 variable_list: $(DO_PRINTVAL_LIST) variable_check 150 151 # Pattern rule for printing out a variable 152 %.printval: 153 @$(ECHO) " ALT_$* - $($*.desc)" 154 @$(ECHO) " \t $*=$($*)" 155 156 # Pattern rule for checking to see if a variable with a directory exists 157 %.checkdir: 158 @if [ ! -d $($*) ] ; then \ 159 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ 160 fi | 82 variable_help: variable_help_intro variable_list variable_help_end 83 variable_help_intro: 84 @$(ECHO) "--- Common Variables ---" 85 variable_help_end: 86 @$(ECHO) " " 87 88 # One line descriptions for the variables 89 OUTPUTDIR.desc = Output directory 90 PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count 91 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: 92 BOOTDIR.desc = JDK used to boot the build 93 LANGTOOLS_DIST.desc = langtools dist area used to build 94 CORBA_DIST.desc = corba dist area 95 JAXP_DIST.desc = jaxp dist area 96 JAXWS_DIST.desc = jaxws dist area 97 JDK_IMPORT_PATH.desc = JDK used to import components of the build 98 COMPILER_PATH.desc = Compiler install directory 99 CACERTS_FILE.desc = Location of certificates file 100 DEVTOOLS_PATH.desc = Directory containing zip and unzip 101 CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files 102 103 # Make variables to print out (description and value) 104 VARIABLE_PRINTVAL_LIST += \ 105 OUTPUTDIR \ 106 PARALLEL_COMPILE_JOBS \ 107 SLASH_JAVA \ 108 BOOTDIR \ 109 LANGTOOLS_DIST \ 110 JAXWS_DIST \ 111 CORBA_DIST \ 112 JAXP_DIST \ 113 JDK_IMPORT_PATH \ 114 COMPILER_PATH \ 115 CACERTS_FILE \ 116 DEVTOOLS_PATH 117 118 # Make variables that should refer to directories that exist 119 VARIABLE_CHECKDIR_LIST += \ 120 SLASH_JAVA \ 121 BOOTDIR \ 122 JDK_IMPORT_PATH \ 123 COMPILER_PATH \ 124 DEVTOOLS_PATH 125 126 # Make variables that should refer to files that exist 127 VARIABLE_CHECKFIL_LIST += \ 128 CACERTS_FILE 129 130 # For pattern rules below, so all are treated the same 131 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) 132 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) 133 DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) 134 135 # Complete variable check 136 variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) 137 variable_list: $(DO_PRINTVAL_LIST) variable_check 138 139 # Pattern rule for printing out a variable 140 %.printval: 141 @$(ECHO) " ALT_$* - $($*.desc)" 142 @$(ECHO) " \t $*=$($*)" 143 144 # Pattern rule for checking to see if a variable with a directory exists 145 %.checkdir: 146 @if [ ! -d $($*) ] ; then \ 147 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ 148 fi |