From 0e83965d07d8c7badfc00bb10a732849fcb04b18 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 8 Feb 2008 15:46:38 +0100 Subject: doc: Don't delete the `lout' dir when srcdir = builddir. * doc/user/Makefile.am (clean-local): Test whether srcdir = builddir before running "rm -rf lout". Reported by Barrie Stott. --- doc/user/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am index 797bc45..9ff8880 100644 --- a/doc/user/Makefile.am +++ b/doc/user/Makefile.am @@ -105,4 +105,5 @@ uninstall-local: # not listed in `CLEANFILES'. clean-local: -rm -f user-*.html *.eps *.png - -rm -rf "lout" + -if test "$(top_builddir)" != "$(top_srcdir)"; \ + then rm -rf "lout" ; else : ; fi -- cgit v1.2.3