summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-04-11 14:19:05 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2017-04-20 00:23:08 -0400
commit76d8d0e0e7bb5119654ef2f30ec2d220002af216 (patch)
tree2eb74c66b3610483f97771543eeca3ec3ff2d324 /Makefile
parent57422748f9f433e7ad42846a20633e62d3c23d44 (diff)
downloaddevtools32-76d8d0e0e7bb5119654ef2f30ec2d220002af216.tar.xz
Makefile: m4_changequote([[[,]]]) to avoid accidental quoting.
The default m4 quote characters: `QUOTE' are troublesome, because ` is fairly likely to pop up in a shell script (if not for a subshell, because it is a useful character in comments and user-facing messages). So, this changes it to [[[QUOTE]]], as it is unlikely to see three braces together like that, let alone in unbalanced sets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f4a00ba..d5f6ad7 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
%: %.in Makefile lib/common.sh
@echo "GEN $@"
@$(RM) "$@"
- @m4 -P $@.in | $(edit) >$@
+ @{ echo -n 'm4_changequote([[[,]]])'; cat $@.in; } | m4 -P | $(edit) >$@
@chmod a-w "$@"
@chmod +x "$@"
@bash -O extglob -n "$@"