Skip to content

Commit b3bdff4

Browse files
committed
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.
1 parent f72d80b commit b3bdff4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Pattern rule to print variables, e.g. make print-top_srcdir
66
print-%:
7-
@echo $* = $($*)
7+
@echo '$*' = '$($*)'
88

99
ACLOCAL_AMFLAGS = -I build-aux/m4
1010
SUBDIRS = src

depends/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Pattern rule to print variables, e.g. make print-top_srcdir
44
print-%:
5-
@echo $* = $($*)
5+
@echo '$*' = '$($*)'
66

77
# When invoking a sub-make, keep only the command line variable definitions
88
# matching the pattern in the filter function.

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Pattern rule to print variables, e.g. make print-top_srcdir
66
print-%:
7-
@echo $* = $($*)
7+
@echo '$*' = '$($*)'
88

99
DIST_SUBDIRS = secp256k1 univalue
1010

0 commit comments

Comments
 (0)