Skip to content

Commit

Permalink
build: Proper quoting for var printing targets
Browse files Browse the repository at this point in the history
Previously, if the value contained syntax that was meaningful to make,
the printing would fail. Quoting properly avoids this.
  • Loading branch information
dongcarl committed Feb 3, 2021
1 parent f72d80b commit b3bdff4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion depends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

DIST_SUBDIRS = secp256k1 univalue

Expand Down

0 comments on commit b3bdff4

Please sign in to comment.