diff options
| author | Phillip Lord | 2015-12-02 21:28:56 +0000 |
|---|---|---|
| committer | Phillip Lord | 2015-12-02 21:28:56 +0000 |
| commit | 354a1fc38d6d4bf93db30c6e3048437dd3fbc19f (patch) | |
| tree | 027f7196aac76c71c78ead31559b0d56d2ff7ccd | |
| parent | 5874cd46e9cd8b20c61190ad56055d73816c2303 (diff) | |
| download | emacs-354a1fc38d6d4bf93db30c6e3048437dd3fbc19f.tar.gz emacs-354a1fc38d6d4bf93db30c6e3048437dd3fbc19f.zip | |
make check unconditional, check-maybe top-level.
* Makefile.in: Add check-maybe target.
* test/Makefile.in: Restore unconditional behaviour to make check.
| -rw-r--r-- | Makefile.in | 11 | ||||
| -rw-r--r-- | test/Makefile.in | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 9ab1f768da0..06e5b065701 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -921,6 +921,15 @@ extraclean: $(extraclean_dirs:=_extraclean) | |||
| 921 | TAGS tags: lib lib-src src | 921 | TAGS tags: lib lib-src src |
| 922 | $(MAKE) -C src tags | 922 | $(MAKE) -C src tags |
| 923 | 923 | ||
| 924 | |||
| 925 | check-maybe: all | ||
| 926 | @if test ! -d test; then \ | ||
| 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."; \ | ||
| 929 | else \ | ||
| 930 | $(MAKE) -C test check-maybe; \ | ||
| 931 | fi | ||
| 932 | |||
| 924 | check: all | 933 | check: all |
| 925 | @if test ! -d test; then \ | 934 | @if test ! -d test; then \ |
| 926 | echo "You do not seem to have the test/ directory."; \ | 935 | echo "You do not seem to have the test/ directory."; \ |
| @@ -943,7 +952,7 @@ $(DOCS): | |||
| 943 | $(MAKE) -C doc/$(subst -, ,$@) | 952 | $(MAKE) -C doc/$(subst -, ,$@) |
| 944 | 953 | ||
| 945 | .PHONY: $(DOCS) docs pdf ps | 954 | .PHONY: $(DOCS) docs pdf ps |
| 946 | .PHONY: info dvi dist check html info-real info-dir check-info | 955 | .PHONY: info dvi dist check check-maybe html info-real info-dir check-info |
| 947 | 956 | ||
| 948 | ## TODO add etc/refcards. | 957 | ## TODO add etc/refcards. |
| 949 | docs: $(DOCS) | 958 | docs: $(DOCS) |
diff --git a/test/Makefile.in b/test/Makefile.in index 06a2fb9ce31..1e76675ac76 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -136,7 +136,7 @@ $(foreach test,${TESTS},$(eval $(call test_template,${test}))) | |||
| 136 | 136 | ||
| 137 | ## Re-run all the tests every time. | 137 | ## Re-run all the tests every time. |
| 138 | check: | 138 | check: |
| 139 | -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done | 139 | -@for f in $(LOGFILES); do test ! -f $$f || mv $$f $$f~; done |
| 140 | @${MAKE} check-maybe | 140 | @${MAKE} check-maybe |
| 141 | 141 | ||
| 142 | ## Only re-run tests whose .log is older than the test. | 142 | ## Only re-run tests whose .log is older than the test. |