Commit 7a1d7266 authored by Richo Healey's avatar Richo Healey

mk: Add a printer helper to the make setup

Also add docs because not being able to discover these things is the
pits.
parent c897ac04
...@@ -159,6 +159,13 @@ ...@@ -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 ...@@ -16,4 +16,7 @@ else
E = echo $(1) E = echo $(1)
endif endif
print-%:
@echo $*=$($*)
S := $(CFG_SRC_DIR) S := $(CFG_SRC_DIR)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment