emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9b8dc62: Simlify top-level Makefile since admin is always include


From: Glenn Morris
Subject: master 9b8dc62: Simlify top-level Makefile since admin is always included
Date: Sat, 24 Apr 2021 13:05:30 -0400 (EDT)

branch: master
commit 9b8dc629d37de32abba76ac9b4b6106491cd21a4
Author: Glenn Morris <rgm@gnu.org>
Commit: Glenn Morris <rgm@gnu.org>

    Simlify top-level Makefile since admin is always included
    
    * Makefile.in (clean_dirs, distclean_dirs, maintainer_clean_dirs):
    Add admin directories.
    (clean, distclean, bootstrap-clean, maintainer-clean): Simplify.
    (maybeclean_dirs): Remove - this dates to when admin/ was not
    included in tar files.
---
 Makefile.in | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 6385483..f04ba0c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -834,12 +834,11 @@ mostlyclean: $(mostlyclean_dirs:=_mostlyclean)
 ###      with them.
 ###
 ###      Delete '.dvi' files here if they are not part of the distribution.
-clean_dirs = $(mostlyclean_dirs) nextstep
+clean_dirs = $(mostlyclean_dirs) nextstep admin/charsets admin/unidata
 
 $(foreach dir,$(clean_dirs),$(eval $(call submake_template,$(dir),clean)))
 
 clean: $(clean_dirs:=_clean)
-       $(MAKE) -C admin/charsets $@
        [ ! -d test ] || $(MAKE) -C test $@
        -rm -f ./*.tmp etc/*.tmp*
        -rm -rf info-dir.*
@@ -860,16 +859,11 @@ top_distclean=\
        rm -f config.status config.log~ \
          Makefile makefile lib/gnulib.mk ${SUBDIR_MAKEFILES}
 
-distclean_dirs = $(clean_dirs) leim lisp
+distclean_dirs = $(clean_dirs) leim lisp admin/grammars
 
 $(foreach dir,$(distclean_dirs),$(eval $(call 
submake_template,$(dir),distclean)))
 
-maybeclean_dirs = test admin/grammars admin/unidata admin/charsets
-
 distclean: $(distclean_dirs:=_distclean)
-       for dir in $(filter-out test,$(maybeclean_dirs)); do \
-         $(MAKE) -C $$dir $@ || exit; \
-       done
        [ ! -d test ] || $(MAKE) -C test $@
        ${top_distclean}
 
@@ -879,9 +873,6 @@ distclean: $(distclean_dirs:=_distclean)
 $(foreach dir,$(distclean_dirs),$(eval $(call 
submake_template,$(dir),bootstrap-clean)))
 
 bootstrap-clean: $(distclean_dirs:=_bootstrap-clean)
-       for dir in $(filter-out test,$(maybeclean_dirs)); do \
-         $(MAKE) -C $$dir $@ || exit; \
-       done
        [ ! -d test ] || $(MAKE) -C test $@
        [ ! -f config.log ] || mv -f config.log config.log~
        rm -rf ${srcdir}/info
@@ -903,14 +894,12 @@ top_maintainer_clean=\
        ${top_distclean}; \
        rm -fr autom4te.cache
 
-maintainer_clean_dirs = src leim lisp
+maintainer_clean_dirs = src leim lisp admin/charsets admin/grammars \
+  admin/unidata
 
 $(foreach dir,$(maintainer_clean_dirs),$(eval $(call 
submake_template,$(dir),maintainer-clean)))
 
 maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean)
-       for dir in $(filter-out test,$(maybeclean_dirs)); do \
-         $(MAKE) -C $$dir $@ || exit; \
-       done
        [ ! -d test ] || $(MAKE) -C test $@
        ${top_maintainer_clean}
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]