From 5d5b162449fc2d2249af5222c1877f9624ca659b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 5 Feb 2019 03:09:15 +0100 Subject: Remove left-over empty directories in 'make distclean'. * lib/Makefile.am (DISTCLEANDIRS, DISTCLEANDIRS_NOT_IN_SRCDIR): New variables. (distclean-local): New target. * tests/Makefile.am (distclean-local): New target. --- lib/Makefile.am | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index 1dff4d5..c63c235 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -178,7 +178,7 @@ EXTRA_DIST += unistring/cdefs.in.h nobase_nodist_include_HEADERS += unistring/woe32dll.h # Directories that contain some CLEANFILES. -CLEANDIRS = +CLEANDIRS = CLEANDIRS_NOT_IN_SRCDIR = unistring clean-local: clean-generic @for dir in '' $(CLEANDIRS); do \ @@ -195,6 +195,24 @@ clean-local: clean-generic fi; \ : +# Directories that contain some DISTCLEANFILES. +DISTCLEANDIRS = sys +DISTCLEANDIRS_NOT_IN_SRCDIR = +distclean-local: distclean-generic + @for dir in '' $(DISTCLEANDIRS); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + if test '$(srcdir)' != '.'; then \ + for dir in '' $(DISTCLEANDIRS_NOT_IN_SRCDIR); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + fi; \ + : + # List of header files that get installed and that declare 'extern' symbols. HEADERS_WITH_EXTERNS = \ unitypes.h \ -- cgit v1.2.1