From 447569fd22705e9575e7e3a25d1e36de4d4d8253 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 14 Aug 2007 21:55:14 +0200 Subject: [PATCH] fix uninstall --- doc/Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index f2ab4d6..c49a5b1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -51,8 +51,10 @@ install-apidocs-internals: $(HTML_APIDOC_INTERNALS_DIR).stamp DOXYGEN_UNINSTALL_TARGETS += uninstall-apidocs-internals uninstall-apidocs-internals: - cd "$(DESTDIR)$(docdir)" && rm -f $(DOC_APIDOC_INTERNALS_HTML)/* - rmdir $(DESTDIR)$(docdir)/$(DOC_APIDOC_INTERNALS_HTML) + if cd "$(DESTDIR)$(docdir)"; then \ + rm -f "$(DOC_APIDOC_INTERNALS_HTML)/"*; \ + rmdir "$(DOC_APIDOC_INTERNALS_HTML)"; \ + fi;: endif @@ -67,8 +69,10 @@ install-apidocs: $(HTML_APIDOC_DIR).stamp DOXYGEN_UNINSTALL_TARGETS += uninstall-apidocs uninstall-apidocs: - cd "$(DESTDIR)$(docdir)" && rm -f $(DOC_APIDOC_HTML)/* - rmdir $(DESTDIR)$(docdir)/$(DOC_APIDOC_HTML) + if cd "$(DESTDIR)$(docdir)"; then \ + rm -f "$(DOC_APIDOC_HTML)/"*; \ + rmdir "$(DOC_APIDOC_HTML)"; \ + fi;: DOXYGEN_CLEAN_TARGETS += clean-apidocs clean-apidocs: -- 2.7.4