aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorGlenn Morris2021-05-10 10:42:53 -0700
committerGlenn Morris2021-05-10 10:42:53 -0700
commitdc151c000128cef231dfd88c6da43ad76cc08aeb (patch)
tree9b779c3ea38ea0f9e2584f8c8e397fe55528bc82 /Makefile.in
parent02c80307f13f7ffe3dc024aee72e47060b4a1996 (diff)
downloademacs-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.in14
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.
847mostlyclean_dirs = src oldXMenu lwlib lib lib-src nt doc/emacs doc/misc \ 847mostlyclean_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
852mostlyclean: $(mostlyclean_dirs:=_mostlyclean) 852mostlyclean: $(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
867clean: $(clean_dirs:=_clean) 866clean: $(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
893distclean: $(distclean_dirs:=_distclean) 891distclean: $(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
902bootstrap-clean: $(distclean_dirs:=_bootstrap-clean) 899bootstrap-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
924maintainer_clean_dirs = src leim lisp admin/charsets admin/grammars \ 920maintainer_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
929maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) 925maintainer-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
958CHECK_TARGETS = check check-maybe check-expensive check-all 953CHECK_TARGETS = check check-maybe check-expensive check-all
959.PHONY: $(CHECK_TARGETS) 954.PHONY: $(CHECK_TARGETS)
960$(CHECK_TARGETS): all 955$(CHECK_TARGETS): all
961ifeq ($(wildcard test),test)
962 $(MAKE) -C test $@ 956 $(MAKE) -C test $@
963else
964 @echo "You do not seem to have the test/ directory."
965 @echo "Maybe you used a release tarfile that lacks tests."
966endif
967 957
968test/%: 958test/%:
969 $(MAKE) -C test $* 959 $(MAKE) -C test $*