Skip to content

Commit 7276fab

Browse files
committed
fix: small issue with make detect-libs on macOS
href: https://superuser.com/q/307165
1 parent e41d8a1 commit 7276fab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ detect-libs:
107107
base=$${bin#src/main/}; base=$${base%.*}; \
108108
grep -e "'$$bin'" $$baseid.log > $$baseid.$$base.log; \
109109
printf "%s: " "$$base"; \
110-
sed -e "s/'//g; s/ /\\n/g" $$baseid.$$base.log | grep -e "^-l" | \
111-
if [ "$$sort" = true ]; then printf "(sorted) "; sort -u; else cat; fi | xargs echo; \
110+
( sed -e "s/'//g; s/ /\\$$(printf '\n/g')" $$baseid.$$base.log | grep -e "^-l" | \
111+
if [ "$$sort" = true ]; then printf "(sorted) "; sort -u; else cat; fi | xargs echo ); \
112112
done; echo; \
113113
cat $$baseid.*.log; \
114114
$(RM) $$baseid.*log

0 commit comments

Comments
 (0)