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:
1 parent
f72d80b07a
commit
b3bdff42b5
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Pattern rule to print variables, e.g. make print-top_srcdir
|
# Pattern rule to print variables, e.g. make print-top_srcdir
|
||||||
print-%:
|
print-%:
|
||||||
@echo $* = $($*)
|
@echo '$*' = '$($*)'
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I build-aux/m4
|
ACLOCAL_AMFLAGS = -I build-aux/m4
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Pattern rule to print variables, e.g. make print-top_srcdir
|
# Pattern rule to print variables, e.g. make print-top_srcdir
|
||||||
print-%:
|
print-%:
|
||||||
@echo $* = $($*)
|
@echo '$*' = '$($*)'
|
||||||
|
|
||||||
# When invoking a sub-make, keep only the command line variable definitions
|
# When invoking a sub-make, keep only the command line variable definitions
|
||||||
# matching the pattern in the filter function.
|
# matching the pattern in the filter function.
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Pattern rule to print variables, e.g. make print-top_srcdir
|
# Pattern rule to print variables, e.g. make print-top_srcdir
|
||||||
print-%:
|
print-%:
|
||||||
@echo $* = $($*)
|
@echo '$*' = '$($*)'
|
||||||
|
|
||||||
DIST_SUBDIRS = secp256k1 univalue
|
DIST_SUBDIRS = secp256k1 univalue
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user