]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix extraclean in a different way for info+lib/sys
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2019 18:18:14 +0000 (11:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2019 18:19:09 +0000 (11:19 -0700)
* Makefile.in (extraclean):
* lib/Makefile.in (extraclean): Use rmdir but suppress any
error indication.  That way, ‘make extraclean’ will remove the
directory if it’s empty, and successfully do nothing otherwise.

Makefile.in
lib/Makefile.in

index c829ca29bd5a7c4b966f843396aaeeaec6440dc4..aa11e6b0b74e09b58b6437cd7d3fd68196a28cb2 100644 (file)
@@ -942,6 +942,7 @@ extraclean: $(extraclean_dirs:=_extraclean)
        -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
 
 # The src subdir knows how to do the right thing
 # even when the build directory and source dir are different.
index bf9b01f14370f416db6306fb567cc9224738ee00..1973452b223a950ed6f268829064d7a6d1c4a6af 100644 (file)
@@ -127,6 +127,7 @@ distclean bootstrap-clean: mostlyclean
 maintainer-clean: distclean
        rm -f TAGS gnulib.mk
 extraclean: distclean
+       -rmdir sys 2>/dev/null
 
 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean