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:
parent
c897ac04e2
commit
7a1d726696
|
@ -159,6 +159,13 @@
|
||||||
#
|
#
|
||||||
# Admittedly this is a little convoluted.
|
# 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>
|
# </nitty-gritty>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,7 @@ else
|
||||||
E = echo $(1)
|
E = echo $(1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
print-%:
|
||||||
|
@echo $*=$($*)
|
||||||
|
|
||||||
S := $(CFG_SRC_DIR)
|
S := $(CFG_SRC_DIR)
|
||||||
|
|
Loading…
Reference in New Issue