diff options
| author | Glenn Morris | 2015-12-03 19:57:11 -0500 |
|---|---|---|
| committer | Glenn Morris | 2015-12-03 19:57:11 -0500 |
| commit | ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc (patch) | |
| tree | f8909335a0c381d385d0986911c85fa0d65cc54b /Makefile.in | |
| parent | 354a1fc38d6d4bf93db30c6e3048437dd3fbc19f (diff) | |
| download | emacs-ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc.tar.gz emacs-ffefb6e899fbcdcbd79cb34292d57b7bc3043fcc.zip | |
* Makefile.in: Avoid duplication.
(have-tests): New rule.
(check, check-maybe): Use it.
Diffstat (limited to 'Makefile.in')
| -rw-r--r-- | Makefile.in | 16 |
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) | |||
| 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 | 924 | .PHONY: have-tests | |
| 925 | check-maybe: all | 925 | have-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 | ||
| 933 | check: all | 932 | check 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 | ||
| 941 | dist: | 935 | dist: |
| 942 | cd ${srcdir}; ./make-dist | 936 | cd ${srcdir}; ./make-dist |