359 else 360 LOG_INFO=> /dev/null 361 endif 362 ifneq ($$(findstring $$(LOG_LEVEL),debug trace),) 363 LOG_DEBUG= 364 else 365 LOG_DEBUG=> /dev/null 366 endif 367 ifneq ($$(findstring $$(LOG_LEVEL),trace),) 368 LOG_TRACE= 369 else 370 LOG_TRACE=> /dev/null 371 endif 372 endef 373 374 # Make sure logging is setup for everyone that includes MakeBase.gmk. 375 $(eval $(call SetupLogging)) 376 377 # This is to be called by all SetupFoo macros 378 define LogSetupMacroEntry 379 $(if $(27),$(error Internal makefile error: Too many arguments to LogSetupMacroEntry, please update MakeBase.gmk)) 380 $(if $(findstring $(LOG_LEVEL),debug trace), $(info $1 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26,$(if $(strip $($i)),$(NEWLINE) $(strip [$i] $($i)))))) 381 endef 382 383 # Support macro for all SetupFoo macros. 384 define EvalDebugWrapper 385 $(if $(DEBUG_$1), 386 $(info -------- <<< Begin expansion of $1) 387 $(info $2) 388 $(info -------- >>> End expansion of $1) 389 ) 390 391 $2 392 endef 393 394 # Make directory without forking mkdir if not needed 395 MakeDir = \ 396 $(strip $(if $(subst $(wildcard $1 $2 $3 $4 $5 $6 $7 $8 $9),,$(strip $1 $2 $3 $4 $5 $6 $7 $8 $9)),\ 397 $(shell $(MKDIR) -p $1 $2 $3 $4 $5 $6 $7 $8 $9))) 398 399 ifeq ($(OPENJDK_TARGET_OS),solaris) 400 # On Solaris, if the target is a symlink and exists, cp won't overwrite. | 359 else 360 LOG_INFO=> /dev/null 361 endif 362 ifneq ($$(findstring $$(LOG_LEVEL),debug trace),) 363 LOG_DEBUG= 364 else 365 LOG_DEBUG=> /dev/null 366 endif 367 ifneq ($$(findstring $$(LOG_LEVEL),trace),) 368 LOG_TRACE= 369 else 370 LOG_TRACE=> /dev/null 371 endif 372 endef 373 374 # Make sure logging is setup for everyone that includes MakeBase.gmk. 375 $(eval $(call SetupLogging)) 376 377 # This is to be called by all SetupFoo macros 378 define LogSetupMacroEntry 379 $(if $(30),$(error Internal makefile error: Too many arguments to LogSetupMacroEntry, please update MakeBase.gmk)) 380 $(if $(findstring $(LOG_LEVEL),debug trace), $(info $1 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29,$(if $(strip $($i)),$(NEWLINE) $(strip [$i] $($i)))))) 381 endef 382 383 # Support macro for all SetupFoo macros. 384 define EvalDebugWrapper 385 $(if $(DEBUG_$1), 386 $(info -------- <<< Begin expansion of $1) 387 $(info $2) 388 $(info -------- >>> End expansion of $1) 389 ) 390 391 $2 392 endef 393 394 # Make directory without forking mkdir if not needed 395 MakeDir = \ 396 $(strip $(if $(subst $(wildcard $1 $2 $3 $4 $5 $6 $7 $8 $9),,$(strip $1 $2 $3 $4 $5 $6 $7 $8 $9)),\ 397 $(shell $(MKDIR) -p $1 $2 $3 $4 $5 $6 $7 $8 $9))) 398 399 ifeq ($(OPENJDK_TARGET_OS),solaris) 400 # On Solaris, if the target is a symlink and exists, cp won't overwrite. |