aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-12-03 19:57:11 -0500
committerGlenn Morris2015-12-03 19:57:11 -0500
commitffefb6e899fbcdcbd79cb34292d57b7bc3043fcc (patch)
treef8909335a0c381d385d0986911c85fa0d65cc54b
parent354a1fc38d6d4bf93db30c6e3048437dd3fbc19f (diff)
downloademacs-ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc.tar.gz
emacs-ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc.zip
* Makefile.in: Avoid duplication.
(have-tests): New rule. (check, check-maybe): Use it.
-rw-r--r--Makefile.in16
1 files changed, 5 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 06e5b065701..57e29d7f983 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -921,22 +921,16 @@ extraclean: $(extraclean_dirs:=_extraclean)
921TAGS tags: lib lib-src src 921TAGS tags: lib lib-src src
922 $(MAKE) -C src tags 922 $(MAKE) -C src tags
923 923
924 924.PHONY: have-tests
925check-maybe: all 925have-tests:
926 @if test ! -d test; then \ 926 @if test ! -d test; then \
927 echo "You do not seem to have the test/ directory."; \ 927 echo "You do not seem to have the test/ directory."; \
928 echo "Maybe you are using a release tarfile, rather than a repository checkout."; \ 928 echo "Maybe you are using a release tarfile, rather than a repository checkout."; \
929 else \ 929 exit 1; \
930 $(MAKE) -C test check-maybe; \
931 fi 930 fi
932 931
933check: all 932check check-maybe: have-tests all
934 @if test ! -d test; then \ 933 $(MAKE) -C test $@
935 echo "You do not seem to have the test/ directory."; \
936 echo "Maybe you are using a release tarfile, rather than a repository checkout."; \
937 else \
938 $(MAKE) -C test check; \
939 fi
940 934
941dist: 935dist:
942 cd ${srcdir}; ./make-dist 936 cd ${srcdir}; ./make-dist