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 committed 2021-02-03 12:10:02 -05:00
1 parent f72d80b07a
commit b3bdff42b5
3 files changed
+3 -3

No files matched your search

+1 -1
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
+1 -1
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.
+1 -1
View File
@@ -4,7 +4,7 @@
# Pattern rule to print variables, e.g. make print-top_srcdir
print-%:
@echo $* = $($*)
@echo '$*' = '$($*)'
DIST_SUBDIRS = secp256k1 univalue