--- old/make/common/MakeBase.gmk 2015-05-05 15:35:35.093162032 +0200 +++ new/make/common/MakeBase.gmk 2015-05-05 15:35:35.005158363 +0200 @@ -45,6 +45,11 @@ # Functions ############################## +### Debug functions + +# Prints the name and value of a variable +PrintVar = \ + $(info $(strip $1) >$($(strip $1))<) ### Functions for timers @@ -558,6 +563,13 @@ $(and $(findstring $(strip $1),$(strip $2)),\ $(findstring $(strip $2),$(strip $1))) +# Remove a whole list of prefixes +# $1 - List of prefixes +# $2 - List of elements to process +remove-prefixes = \ + $(strip $(if $1,$(patsubst $(firstword $1)%,%,\ + $(call remove-prefixes,$(filter-out $(firstword $1),$1),$2)),$2)) + ################################################################################ ifneq ($(DISABLE_CACHE_FIND), true)