summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-07-30 15:24:49 -0400
committerPierre Schmitz <pierre@archlinux.de>2013-08-08 21:28:19 +0200
commit0fa2536957dfd24ee676cc8b621bcdf166317635 (patch)
tree1c5bd76e9d13ec312bd4ff810d896bae21de095f
parentbe3c71fa81e6d35a1fae0612a8b7b4b613d7d2f6 (diff)
Makefile: validate generated files as part of build
For example... $ make GEN checkpkg GEN commitpkg GEN archco archco: line 179: unexpected EOF while looking for matching `"' archco: line 181: syntax error: unexpected end of file make: *** [archco] Error 2 Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 674d656..c7e8064 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
@m4 -P $@.in | $(edit) >$@
@chmod a-w "$@"
@chmod +x "$@"
+ @bash -O extglob -n "$@"
clean:
rm -f $(BINPROGS) bash_completion zsh_completion