emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ffefb6e: * Makefile.in: Avoid duplication.


From: Glenn Morris
Subject: [Emacs-diffs] master ffefb6e: * Makefile.in: Avoid duplication.
Date: Fri, 04 Dec 2015 00:57:26 +0000

branch: master
commit ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * Makefile.in: Avoid duplication.
    
    (have-tests): New rule.
    (check, check-maybe): Use it.
---
 Makefile.in |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 06e5b06..57e29d7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -921,22 +921,16 @@ extraclean: $(extraclean_dirs:=_extraclean)
 TAGS tags: lib lib-src src
        $(MAKE) -C src tags
 
-
-check-maybe: all
+.PHONY: have-tests
+have-tests:
        @if test ! -d test; then \
          echo "You do not seem to have the test/ directory."; \
          echo "Maybe you are using a release tarfile, rather than a repository 
checkout."; \
-       else \
-         $(MAKE) -C test check-maybe; \
+        exit 1; \
        fi
 
-check: all
-       @if test ! -d test; then \
-         echo "You do not seem to have the test/ directory."; \
-         echo "Maybe you are using a release tarfile, rather than a repository 
checkout."; \
-       else \
-         $(MAKE) -C test check; \
-       fi
+check check-maybe: have-tests all
+       $(MAKE) -C test $@
 
 dist:
        cd ${srcdir}; ./make-dist



reply via email to

[Prev in Thread] Current Thread [Next in Thread]