summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-02-05 03:09:15 +0100
committerBruno Haible <bruno@clisp.org>2019-02-05 03:09:15 +0100
commit5d5b162449fc2d2249af5222c1877f9624ca659b (patch)
tree77a38838616c45b10d08d388ffa7133b36c5a554 /lib
parent3ffdb63784a31c9e630c6e2296c5baae5708e73f (diff)
downloadlibunistring-5d5b162449fc2d2249af5222c1877f9624ca659b.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am20
1 files changed, 19 insertions, 1 deletions
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 \