mk: Add a printer helper to the make setup

Also add docs because not being able to discover these things is the
pits.
This commit is contained in:
Richo Healey 2015-04-10 17:01:09 -07:00
parent c897ac04e2
commit 7a1d726696
2 changed files with 10 additions and 0 deletions

View File

@ -159,6 +159,13 @@
#
# Admittedly this is a little convoluted.
#
# If you find yourself working on the make infrastructure itself, and trying to
# find the value of a given variable after expansion, you can use:
#
# make print-VARIABLE_NAME
#
# To extract it
#
# </nitty-gritty>
#

View File

@ -16,4 +16,7 @@ else
E = echo $(1)
endif
print-%:
@echo $*=$($*)
S := $(CFG_SRC_DIR)