build: Proper quoting for var printing targets

Previously, if the value contained syntax that was meaningful to make,
the printing would fail. Quoting properly avoids this.
This commit is contained in:
Carl Dong 2020-12-11 10:20:58 -05:00
parent f72d80b07a
commit b3bdff42b5
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
# Pattern rule to print variables, e.g. make print-top_srcdir
print-%:
@echo $* = $($*)
@echo '$*' = '$($*)'
ACLOCAL_AMFLAGS = -I build-aux/m4
SUBDIRS = src

View File

@ -2,7 +2,7 @@
# Pattern rule to print variables, e.g. make print-top_srcdir
print-%:
@echo $* = $($*)
@echo '$*' = '$($*)'
# When invoking a sub-make, keep only the command line variable definitions
# matching the pattern in the filter function.

View File

@ -4,7 +4,7 @@
# Pattern rule to print variables, e.g. make print-top_srcdir
print-%:
@echo $* = $($*)
@echo '$*' = '$($*)'
DIST_SUBDIRS = secp256k1 univalue