From 8798649dbeede8cf4389d26c98688b970f9209e5 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Fri, 14 Aug 2015 13:21:33 +0200 Subject: [PATCH] Do not remove api and website source files by accident When the root source dir is used as root build dir, make clean can remove the content of ${abs_builddir}/api which is then equal to ${abs_srcdir}/api. Oops. This patch fixes this. * doc/Makefile.am: Do not remove the entirety of the build dir of doxygen for the apidoc and the website as these can be also the source dirs. Rather, remove that is under the html/ sub-directory of the build dir, as this is always generated by doxygen. Signed-off-by: Dodji Seketeli --- doc/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 5d369113..0794efdc 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -59,7 +59,7 @@ CLEANFILES = $(DOXY_API_BLD_CFG) $(DOXY_WEBSITE_BLD_CFG) # To remove directories. clean-local: - -rm -rf $(DOXY_API_BLD_DIR) $(DOXY_WEBSITE_BLD_DIR) + -rm -rf $(DOXY_API_BLD_DIR)/*/* $(DOXY_WEBSITE_BLD_DIR)/*/* #To install everything: if ENABLE_APIDOC