1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* Makefile.in: Avoid duplication.

(have-tests): New rule.
(check, check-maybe): Use it.
This commit is contained in:
Glenn Morris 2015-12-03 19:57:11 -05:00
parent 354a1fc38d
commit ffefb6e899

View File

@ -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