387 clobber -- same as clean \n\ 388 " 389 390 # Variable help (only common ones used by this Makefile) 391 variable_help: variable_help_intro variable_list variable_help_end 392 variable_help_intro: 393 @$(ECHO) "--- Common Variables ---" 394 variable_help_end: 395 @$(ECHO) " " 396 397 # One line descriptions for the variables 398 OUTPUTDIR.desc = Output directory 399 PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count 400 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: 401 BOOTDIR.desc = JDK used to boot the build 402 JDK_IMPORT_PATH.desc = JDK used to import components of the build 403 COMPILER_PATH.desc = Compiler install directory 404 CACERTS_FILE.desc = Location of certificates file 405 DEVTOOLS_PATH.desc = Directory containing zip and gnumake 406 CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files 407 DXSDK_PATH.desc = Root directory of DirectX SDK 408 409 # Make variables to print out (description and value) 410 VARIABLE_PRINTVAL_LIST += \ 411 OUTPUTDIR \ 412 PARALLEL_COMPILE_JOBS \ 413 SLASH_JAVA \ 414 BOOTDIR \ 415 JDK_IMPORT_PATH \ 416 COMPILER_PATH \ 417 CACERTS_FILE \ 418 DEVTOOLS_PATH 419 420 # Make variables that should refer to directories that exist 421 VARIABLE_CHECKDIR_LIST += \ 422 SLASH_JAVA \ 423 BOOTDIR \ 424 JDK_IMPORT_PATH \ 425 COMPILER_PATH \ 426 DEVTOOLS_PATH 427 428 # Make variables that should refer to files that exist 429 VARIABLE_CHECKFIL_LIST += \ 430 CACERTS_FILE 431 432 # Some are windows specific 433 ifeq ($(PLATFORM), windows) 434 435 VARIABLE_PRINTVAL_LIST += \ 436 DXSDK_PATH 437 438 VARIABLE_CHECKDIR_LIST += \ 439 DXSDK_PATH 440 441 endif 442 443 # For pattern rules below, so all are treated the same 444 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) 445 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) 446 DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) 447 448 # Complete variable check 449 variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) 450 variable_list: $(DO_PRINTVAL_LIST) variable_check 451 452 # Pattern rule for printing out a variable 453 %.printval: 454 @$(ECHO) " ALT_$* - $($*.desc)" 455 @$(ECHO) " \t $*=$($*)" 456 457 # Pattern rule for checking to see if a variable with a directory exists 458 %.checkdir: 459 @if [ ! -d $($*) ] ; then \ 460 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ 461 fi | 387 clobber -- same as clean \n\ 388 " 389 390 # Variable help (only common ones used by this Makefile) 391 variable_help: variable_help_intro variable_list variable_help_end 392 variable_help_intro: 393 @$(ECHO) "--- Common Variables ---" 394 variable_help_end: 395 @$(ECHO) " " 396 397 # One line descriptions for the variables 398 OUTPUTDIR.desc = Output directory 399 PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count 400 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: 401 BOOTDIR.desc = JDK used to boot the build 402 JDK_IMPORT_PATH.desc = JDK used to import components of the build 403 COMPILER_PATH.desc = Compiler install directory 404 CACERTS_FILE.desc = Location of certificates file 405 DEVTOOLS_PATH.desc = Directory containing zip and gnumake 406 CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files 407 408 # Make variables to print out (description and value) 409 VARIABLE_PRINTVAL_LIST += \ 410 OUTPUTDIR \ 411 PARALLEL_COMPILE_JOBS \ 412 SLASH_JAVA \ 413 BOOTDIR \ 414 JDK_IMPORT_PATH \ 415 COMPILER_PATH \ 416 CACERTS_FILE \ 417 DEVTOOLS_PATH 418 419 # Make variables that should refer to directories that exist 420 VARIABLE_CHECKDIR_LIST += \ 421 SLASH_JAVA \ 422 BOOTDIR \ 423 JDK_IMPORT_PATH \ 424 COMPILER_PATH \ 425 DEVTOOLS_PATH 426 427 # Make variables that should refer to files that exist 428 VARIABLE_CHECKFIL_LIST += \ 429 CACERTS_FILE 430 431 # For pattern rules below, so all are treated the same 432 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) 433 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) 434 DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) 435 436 # Complete variable check 437 variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) 438 variable_list: $(DO_PRINTVAL_LIST) variable_check 439 440 # Pattern rule for printing out a variable 441 %.printval: 442 @$(ECHO) " ALT_$* - $($*.desc)" 443 @$(ECHO) " \t $*=$($*)" 444 445 # Pattern rule for checking to see if a variable with a directory exists 446 %.checkdir: 447 @if [ ! -d $($*) ] ; then \ 448 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ 449 fi |