From: Thierry Parmentelat Date: Wed, 2 Apr 2014 17:35:35 +0000 (+0200) Subject: magic for debugging in make X-Git-Tag: sfa-3.1-3~1 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9387180f9530a333fae7bfad2828b1f0f7f3ed10 magic for debugging in make --- diff --git a/Makefile b/Makefile index 3f9bf37b..6279ed1f 100644 --- a/Makefile +++ b/Makefile @@ -219,3 +219,13 @@ sfa/util/{sfalogging,faults,genicode,enumeration,__init__}.py clientlibsync: @[ -d "$(CLIENTLIBTARGET)" ] || { echo "You need to set the make variable CLIENTLIBTARGET"; exit 1; } rsync -av --relative $(CLIENTLIBFILES) $(CLIENTLIBTARGET) + +#################### convenience, for debugging only +# make +foo : prints the value of $(foo) +# make ++foo : idem but verbose, i.e. foo=$(foo) +++%: varname=$(subst +,,$@) +++%: + @echo "$(varname)=$($(varname))" ++%: varname=$(subst +,,$@) ++%: + @echo "$($(varname))"