mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-22 10:26:20 +00:00
make check unconditional, check-maybe top-level.
* Makefile.in: Add check-maybe target. * test/Makefile.in: Restore unconditional behaviour to make check.
This commit is contained in:
parent
5874cd46e9
commit
354a1fc38d
11
Makefile.in
11
Makefile.in
@ -921,6 +921,15 @@ extraclean: $(extraclean_dirs:=_extraclean)
|
||||
TAGS tags: lib lib-src src
|
||||
$(MAKE) -C src tags
|
||||
|
||||
|
||||
check-maybe: 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-maybe; \
|
||||
fi
|
||||
|
||||
check: all
|
||||
@if test ! -d test; then \
|
||||
echo "You do not seem to have the test/ directory."; \
|
||||
@ -943,7 +952,7 @@ $(DOCS):
|
||||
$(MAKE) -C doc/$(subst -, ,$@)
|
||||
|
||||
.PHONY: $(DOCS) docs pdf ps
|
||||
.PHONY: info dvi dist check html info-real info-dir check-info
|
||||
.PHONY: info dvi dist check check-maybe html info-real info-dir check-info
|
||||
|
||||
## TODO add etc/refcards.
|
||||
docs: $(DOCS)
|
||||
|
@ -136,7 +136,7 @@ $(foreach test,${TESTS},$(eval $(call test_template,${test})))
|
||||
|
||||
## Re-run all the tests every time.
|
||||
check:
|
||||
-@for f in *.log; do test ! -f $$f || mv $$f $$f~; done
|
||||
-@for f in $(LOGFILES); do test ! -f $$f || mv $$f $$f~; done
|
||||
@${MAKE} check-maybe
|
||||
|
||||
## Only re-run tests whose .log is older than the test.
|
||||
|
Loading…
Reference in New Issue
Block a user