[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] distcheck: ensure dist-hook fails if syntax-check fails
From: |
Stefano Lattarini |
Subject: |
[PATCH] distcheck: ensure dist-hook fails if syntax-check fails |
Date: |
Thu, 13 Oct 2011 13:41:22 +0200 |
* Makefile.am (run-syntax-check): Fix logic, to ensure that
the recipe of this target returns a non-zero exit status if
"make syntax-check" fails.
---
Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index a13f262..e9005d7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ EXTRA_DIST = \
# Run syntax-check rules before creating a distribution tarball.
.PHONY: run-syntax-check
run-syntax-check:
- $(AM_V_GEN)test -d .git && $(MAKE) syntax-check || :
+ $(AM_V_GEN)test ! -d .git || $(MAKE) syntax-check
# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
--
1.7.2.3
- [PATCH] distcheck: ensure dist-hook fails if syntax-check fails,
Stefano Lattarini <=