diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-05-19 22:02:06 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-05-19 22:02:06 +0900 |
commit | e48372f8e5722643e37185b004469acd174663f7 (patch) | |
tree | b77ec71bb51856f98d34182eca56322750533017 /Makefile.in | |
parent | d0fa569b7303c2d893b54d0a7af7a521308a5ed4 (diff) | |
parent | 61291e06cc804de2075305c220d31ef6072f28c8 (diff) | |
download | emacs-e48372f8e5722643e37185b004469acd174663f7.tar.gz |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/Makefile.in b/Makefile.in index 3115e63025f..71f761eb40f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -96,6 +96,8 @@ NTDIR=@NTDIR@ top_builddir = @top_builddir@ -include ${top_builddir}/src/verbose.mk +FIND_DELETE = @FIND_DELETE@ + HAVE_NATIVE_COMP = @HAVE_NATIVE_COMP@ # ==================== Where To Install Things ==================== @@ -850,12 +852,11 @@ endef ### target for GCC does not delete 'libgcc.a', because recompiling it ### is rarely necessary and takes a lot of time. mostlyclean_dirs = src oldXMenu lwlib lib lib-src nt doc/emacs doc/misc \ - doc/lispref doc/lispintro + doc/lispref doc/lispintro test $(foreach dir,$(mostlyclean_dirs),$(eval $(call submake_template,$(dir),mostlyclean))) mostlyclean: $(mostlyclean_dirs:=_mostlyclean) - [ ! -d test ] || $(MAKE) -C test $@ ### 'clean' ### Delete all files from the current directory that are normally @@ -870,7 +871,6 @@ clean_dirs = $(mostlyclean_dirs) nextstep admin/charsets admin/unidata $(foreach dir,$(clean_dirs),$(eval $(call submake_template,$(dir),clean))) clean: $(clean_dirs:=_clean) clean-gsettings-schemas - [ ! -d test ] || $(MAKE) -C test $@ -rm -f ./*.tmp etc/*.tmp* -rm -rf info-dir.* -rm -rf native-lisp @@ -896,7 +896,6 @@ distclean_dirs = $(clean_dirs) leim lisp admin/grammars $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),distclean))) distclean: $(distclean_dirs:=_distclean) - [ ! -d test ] || $(MAKE) -C test $@ ${top_distclean} ### 'bootstrap-clean' @@ -905,7 +904,6 @@ distclean: $(distclean_dirs:=_distclean) $(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),bootstrap-clean))) bootstrap-clean: $(distclean_dirs:=_bootstrap-clean) - [ ! -d test ] || $(MAKE) -C test $@ [ ! -f config.log ] || mv -f config.log config.log~ rm -rf ${srcdir}/info rm -f ${srcdir}/etc/refcards/emacsver.tex @@ -924,34 +922,25 @@ bootstrap-clean: $(distclean_dirs:=_bootstrap-clean) ### begin to build the program. top_maintainer_clean=\ ${top_distclean}; \ - rm -fr autom4te.cache - -maintainer_clean_dirs = src leim lisp admin/charsets admin/grammars \ - admin/unidata + rm -fr ${srcdir}/autom4te.cache -$(foreach dir,$(maintainer_clean_dirs),$(eval $(call submake_template,$(dir),maintainer-clean))) +$(foreach dir,$(distclean_dirs),$(eval $(call submake_template,$(dir),maintainer-clean))) -maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) - [ ! -d test ] || $(MAKE) -C test $@ +maintainer-clean: $(distclean_dirs:=_maintainer-clean) + rm -rf ${srcdir}/info + rm -f ${srcdir}/etc/refcards/emacsver.tex ${top_maintainer_clean} ### This doesn't actually appear in the coding standards, but Karl ### says GCC supports it, and that's where the configuration part of ### the coding standards seem to come from. It's like distclean, but ### it deletes backup and autosave files too. -### Note that we abuse this in some subdirectories (eg leim), -### to delete some generated files that are slow to rebuild. -extraclean_dirs = ${NTDIR} lib-src src leim \ - admin/charsets admin/grammars admin/unidata lisp lib lwlib - -$(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean))) - -extraclean: $(extraclean_dirs:=_extraclean) - ${top_maintainer_clean} - -rm -f config-tmp-* aclocal.m4 configure - -rm -f ./*~ \#* etc/refcards/emacsver.tex doc/emacs/emacsver.texi - -rm -f info/*.info info/dir - -rmdir info 2>/dev/null +extraclean: maintainer-clean + -rm -f config-tmp-* ${srcdir}/aclocal.m4 ${srcdir}/configure \ + ${srcdir}/src/config.in + -[ "${srcdir}" = "." ] || \ + find ${srcdir} '(' -name '*~' -o -name '#*' ')' ${FIND_DELETE} + -find . '(' -name '*~' -o -name '#*' ')' ${FIND_DELETE} # The src subdir knows how to do the right thing # even when the build directory and source dir are different. @@ -968,12 +957,7 @@ TAGS tags: lib lib-src # src CHECK_TARGETS = check check-maybe check-expensive check-all .PHONY: $(CHECK_TARGETS) $(CHECK_TARGETS): all -ifeq ($(wildcard test),test) $(MAKE) -C test $@ -else - @echo "You do not seem to have the test/ directory." - @echo "Maybe you used a release tarfile that lacks tests." -endif test/%: $(MAKE) -C test $* |