aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2019-10-09 11:12:55 -0400
committerCarl Dong <contact@carldong.me>2019-10-09 11:12:55 -0400
commit181989f6c9427fc266dbdcc84cb60ac03e67cdb2 (patch)
tree656850d3abbd244f2ccc94583188b7e85555d514 /depends
parent1c11e53bb604835afd838f4520d3fdba25521c5b (diff)
downloadbitcoin-181989f6c9427fc266dbdcc84cb60ac03e67cdb2.tar.xz
build: Add variable printing target to Makefiles
I kept finding myself needing these to debug our build system, since they are innocuous and are very helpful they probably belong in the codebase. Source: John Graham-Cumming https://www.cmcrossroads.com/article/printing-value-makefile-variable
Diffstat (limited to 'depends')
-rw-r--r--depends/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/depends/Makefile b/depends/Makefile
index b7e9a9213e..25ff135ea6 100644
--- a/depends/Makefile
+++ b/depends/Makefile
@@ -1,5 +1,9 @@
.NOTPARALLEL :
+# Pattern rule to print variables, e.g. make print-top_srcdir
+print-%:
+ @echo $* = $($*)
+
SOURCES_PATH ?= $(BASEDIR)/sources
WORK_PATH = $(BASEDIR)/work
BASE_CACHE ?= $(BASEDIR)/built