diff options
author | Jim Meyering <meyering@redhat.com> | 2011-01-28 08:13:22 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-28 08:25:10 +0100 |
commit | 2ad572d9a7ae77b0ce95b81f360f6fb0481b4ee7 (patch) | |
tree | 4d28ca88dee4970b43afa482a014e6071f29669c | |
parent | e5195e9473c46d410d89a6145cbbf18f81dff533 (diff) | |
download | grep-2ad572d9a7ae77b0ce95b81f360f6fb0481b4ee7.tar.gz |
build: run syntax-check rules as part of "make dist"
* Makefile.am (dist-hook): Depend on syntax-check.
Suggested by Reuben Thomas.
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e85aea8c..a702c2ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,6 +33,10 @@ EXTRA_DIST = \ dist-hook: gen-ChangeLog $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version +# Run syntax-check rules before creating a distribution tarball. +dist-hook: + $(AM_V_GEN)test -d .git && $(MAKE) syntax-check || : + gen_start_date = 2009-11-27 .PHONY: gen-ChangeLog gen-ChangeLog: |