From: Frédéric Buclin Date: Fri, 15 Apr 2016 19:30:36 +0000 (+0200) Subject: Bug 1232171 - 'make clean' shouldn't delete rst/, images/ and Makefile, only generate... X-Git-Tag: release-5.0.3~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a868b88d147f14c2135beb53b82babbc4c46635f;p=thirdparty%2Fbugzilla.git Bug 1232171 - 'make clean' shouldn't delete rst/, images/ and Makefile, only generated files r=gerv --- diff --git a/docs/en/Makefile b/docs/en/Makefile index fc9af11e01..8c3621f314 100644 --- a/docs/en/Makefile +++ b/docs/en/Makefile @@ -39,7 +39,7 @@ help: @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: - -rm -rf $(BUILDDIR)/* + find $(BUILDDIR) -maxdepth 1 -type d -not -name rst -not -name images -not -name . -exec rm -rf {} \; html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html