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 | |
| 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.
| -rw-r--r-- | Makefile.in | 14 | ||||
| -rwxr-xr-x | make-dist | 18 |
2 files changed, 5 insertions, 27 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 $* |
| @@ -52,7 +52,6 @@ make_tar=no | |||
| 52 | default_gzip=gzip | 52 | default_gzip=gzip |
| 53 | newer="" | 53 | newer="" |
| 54 | with_info=yes | 54 | with_info=yes |
| 55 | with_tests=yes | ||
| 56 | changelog=yes | 55 | changelog=yes |
| 57 | verbose=no | 56 | verbose=no |
| 58 | 57 | ||
| @@ -109,16 +108,10 @@ while [ $# -gt 0 ]; do | |||
| 109 | update=no | 108 | update=no |
| 110 | ;; | 109 | ;; |
| 111 | 110 | ||
| 112 | ## Include the test/ directory. | 111 | "--tests"|"--no-tests") |
| 113 | ## This is for backward compatibility to when --no-tests was the default. | 112 | echo "The option $1 no longer does anything" |
| 114 | "--tests") | ||
| 115 | with_tests=yes | ||
| 116 | ;; | 113 | ;; |
| 117 | 114 | ||
| 118 | ## Exclude the test/ directory. | ||
| 119 | "--no-tests") | ||
| 120 | with_tests=no | ||
| 121 | ;; | ||
| 122 | 115 | ||
| 123 | "--verbose") | 116 | "--verbose") |
| 124 | verbose=yes | 117 | verbose=yes |
| @@ -136,7 +129,6 @@ while [ $# -gt 0 ]; do | |||
| 136 | echo " --no-update don't recompile or do analogous things" | 129 | echo " --no-update don't recompile or do analogous things" |
| 137 | echo " --no-changelog don't generate the top-level ChangeLog" | 130 | echo " --no-changelog don't generate the top-level ChangeLog" |
| 138 | echo " --no-info don't include info files" | 131 | echo " --no-info don't include info files" |
| 139 | echo " --no-tests don't include the test/ directory" | ||
| 140 | echo " --snapshot same as --clean-up --no-update --tar" | 132 | echo " --snapshot same as --clean-up --no-update --tar" |
| 141 | echo " --tar make a tar file" | 133 | echo " --tar make a tar file" |
| 142 | echo " --verbose noisier output" | 134 | echo " --verbose noisier output" |
| @@ -402,11 +394,7 @@ manifest=MANIFEST | |||
| 402 | # if .git is present. | 394 | # if .git is present. |
| 403 | if ( [ $update = yes ] || [ ! -f $manifest ] ) && [ -r .git ]; then | 395 | if ( [ $update = yes ] || [ ! -f $manifest ] ) && [ -r .git ]; then |
| 404 | echo "Updating $manifest" | 396 | echo "Updating $manifest" |
| 405 | if [ $with_tests = yes ]; then | 397 | git ls-files > $manifest || exit |
| 406 | git ls-files > $manifest | ||
| 407 | else | ||
| 408 | git ls-files | grep -v '^test' >$manifest | ||
| 409 | fi || exit | ||
| 410 | printf '%s\n' $possibly_non_vc_files $info_files >>$manifest || exit | 398 | printf '%s\n' $possibly_non_vc_files $info_files >>$manifest || exit |
| 411 | sort -u -o $manifest $manifest || exit | 399 | sort -u -o $manifest $manifest || exit |
| 412 | fi | 400 | fi |