diff options
| author | Glenn Morris | 2021-05-10 10:42:53 -0700 |
|---|---|---|
| committer | Glenn Morris | 2021-05-10 10:42:53 -0700 |
| commit | dc151c000128cef231dfd88c6da43ad76cc08aeb (patch) | |
| tree | 9b779c3ea38ea0f9e2584f8c8e397fe55528bc82 /Makefile.in | |
| parent | 02c80307f13f7ffe3dc024aee72e47060b4a1996 (diff) | |
| download | emacs-dc151c000128cef231dfd88c6da43ad76cc08aeb.tar.gz emacs-dc151c000128cef231dfd88c6da43ad76cc08aeb.zip | |
Always include the test/ directory in tarfiles
In hindsight, it's hard to see why not including it was ever an option.
* make-dist: Always include the test/ directory.
(with_tests): Remove.
(--tests, --no-tests): Make these options no-ops.
* Makefile.in (mostlyclean_dirs, maintainer_clean_dirs): Add "test".
(mostlyclean, clean, distclean, maintainer-clean):
Remove special-casing for "test".
($(CHECK_TARGETS)): Simplify.
Diffstat (limited to 'Makefile.in')
| -rw-r--r-- | Makefile.in | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in index 6bde5e5f059..21e6336a7d5 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -845,12 +845,11 @@ endef | |||
| 845 | ### target for GCC does not delete 'libgcc.a', because recompiling it | 845 | ### target for GCC does not delete 'libgcc.a', because recompiling it |
| 846 | ### is rarely necessary and takes a lot of time. | 846 | ### is rarely necessary and takes a lot of time. |
| 847 | mostlyclean_dirs = src oldXMenu lwlib lib lib-src nt doc/emacs doc/misc \ | 847 | mostlyclean_dirs = src oldXMenu lwlib lib lib-src nt doc/emacs doc/misc \ |
| 848 | doc/lispref doc/lispintro | 848 | doc/lispref doc/lispintro test |
| 849 | 849 | ||
| 850 | $(foreach dir,$(mostlyclean_dirs),$(eval $(call submake_template,$(dir),mostlyclean))) | 850 | $(foreach dir,$(mostlyclean_dirs),$(eval $(call submake_template,$(dir),mostlyclean))) |
| 851 | 851 | ||
| 852 | mostlyclean: $(mostlyclean_dirs:=_mostlyclean) | 852 | mostlyclean: $(mostlyclean_dirs:=_mostlyclean) |
| 853 | [ ! -d test ] || $(MAKE) -C test $@ | ||
| 854 | 853 | ||
| 855 | ### 'clean' | 854 | ### 'clean' |
| 856 | ### Delete all files from the current directory that are normally | 855 | ### Delete all files from the current directory that are normally |
| @@ -865,7 +864,6 @@ clean_dirs = $(mostlyclean_dirs) nextstep admin/charsets admin/unidata | |||
| 865 | $(foreach dir,$(clean_dirs),$(eval $(call submake_template,$(dir),clean))) | 864 | $(foreach dir,$(clean_dirs),$(eval $(call submake_template,$(dir),clean))) |
| 866 | 865 | ||
| 867 | clean: $(clean_dirs:=_clean) | 866 | clean: $(clean_dirs:=_clean) |
| 868 | [ ! -d test ] || $(MAKE) -C test $@ | ||
| 869 | -rm -f ./*.tmp etc/*.tmp* | 867 | -rm -f ./*.tmp etc/*.tmp* |
| 870 | -rm -rf info-dir.* | 868 | -rm -rf info-dir.* |
| 871 | -rm -rf native-lisp | 869 | -rm -rf native-lisp |
| @@ -891,7 +889,6 @@ distclean_dirs = $(clean_dirs) leim lisp admin/grammars | |||
| 891 | $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),distclean))) | 889 | $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),distclean))) |
| 892 | 890 | ||
| 893 | distclean: $(distclean_dirs:=_distclean) | 891 | distclean: $(distclean_dirs:=_distclean) |
| 894 | [ ! -d test ] || $(MAKE) -C test $@ | ||
| 895 | ${top_distclean} | 892 | ${top_distclean} |
| 896 | 893 | ||
| 897 | ### 'bootstrap-clean' | 894 | ### 'bootstrap-clean' |
| @@ -900,7 +897,6 @@ distclean: $(distclean_dirs:=_distclean) | |||
| 900 | $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),bootstrap-clean))) | 897 | $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),bootstrap-clean))) |
| 901 | 898 | ||
| 902 | bootstrap-clean: $(distclean_dirs:=_bootstrap-clean) | 899 | bootstrap-clean: $(distclean_dirs:=_bootstrap-clean) |
| 903 | [ ! -d test ] || $(MAKE) -C test $@ | ||
| 904 | [ ! -f config.log ] || mv -f config.log config.log~ | 900 | [ ! -f config.log ] || mv -f config.log config.log~ |
| 905 | rm -rf ${srcdir}/info | 901 | rm -rf ${srcdir}/info |
| 906 | rm -f ${srcdir}/etc/refcards/emacsver.tex | 902 | rm -f ${srcdir}/etc/refcards/emacsver.tex |
| @@ -922,12 +918,11 @@ top_maintainer_clean=\ | |||
| 922 | rm -fr ${srcdir}/autom4te.cache | 918 | rm -fr ${srcdir}/autom4te.cache |
| 923 | 919 | ||
| 924 | maintainer_clean_dirs = src leim lisp admin/charsets admin/grammars \ | 920 | maintainer_clean_dirs = src leim lisp admin/charsets admin/grammars \ |
| 925 | admin/unidata | 921 | admin/unidata test |
| 926 | 922 | ||
| 927 | $(foreach dir,$(maintainer_clean_dirs),$(eval $(call submake_template,$(dir),maintainer-clean))) | 923 | $(foreach dir,$(maintainer_clean_dirs),$(eval $(call submake_template,$(dir),maintainer-clean))) |
| 928 | 924 | ||
| 929 | maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) | 925 | maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) |
| 930 | [ ! -d test ] || $(MAKE) -C test $@ | ||
| 931 | rm -rf ${srcdir}/info | 926 | rm -rf ${srcdir}/info |
| 932 | rm -f ${srcdir}/etc/refcards/emacsver.tex | 927 | rm -f ${srcdir}/etc/refcards/emacsver.tex |
| 933 | ${top_maintainer_clean} | 928 | ${top_maintainer_clean} |
| @@ -958,12 +953,7 @@ TAGS tags: lib lib-src # src | |||
| 958 | CHECK_TARGETS = check check-maybe check-expensive check-all | 953 | CHECK_TARGETS = check check-maybe check-expensive check-all |
| 959 | .PHONY: $(CHECK_TARGETS) | 954 | .PHONY: $(CHECK_TARGETS) |
| 960 | $(CHECK_TARGETS): all | 955 | $(CHECK_TARGETS): all |
| 961 | ifeq ($(wildcard test),test) | ||
| 962 | $(MAKE) -C test $@ | 956 | $(MAKE) -C test $@ |
| 963 | else | ||
| 964 | @echo "You do not seem to have the test/ directory." | ||
| 965 | @echo "Maybe you used a release tarfile that lacks tests." | ||
| 966 | endif | ||
| 967 | 957 | ||
| 968 | test/%: | 958 | test/%: |
| 969 | $(MAKE) -C test $* | 959 | $(MAKE) -C test $* |