Skip to content

Commit 84912d4

Browse files
committed
build: Remove spaces from variable-printing rules
This simplifies parsing when using these rules from scripts.
1 parent 0102f80 commit 84912d4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Makefile.am

+1-1
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

contrib/guix/guix-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fi
119119
for host in $HOSTS; do
120120
case "$host" in
121121
*darwin*)
122-
OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+=[[:space:]]\+@@g')"
122+
OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+=@@g')"
123123
if [ -e "$OSX_SDK" ]; then
124124
echo "Found macOS SDK at '${OSX_SDK}', using..."
125125
else

depends/Makefile

+1-1
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

+1-1
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)