[ovs-dev] [PATCH v2 2/5] make: Add distinct clean-docs target

Stephen Finucane stephen at that.guru
Mon Jan 2 11:47:39 UTC 2017


Speed things up by not rebuilding documents every time.

Signed-off-by: Stephen Finucane <stephen at that.guru>
---
 Documentation/automake.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/automake.mk b/Documentation/automake.mk
index cb41d11..ac147a7 100644
--- a/Documentation/automake.mk
+++ b/Documentation/automake.mk
@@ -99,7 +99,6 @@ PAPEROPT_letter = -D latex_paper_size=letter
 ALLSPHINXOPTS = -W -n -d $(SPHINXBUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SPHINXSRCDIR)
 
 htmldocs:
-	rm -rf $(SPHINXBUILDDIR)/*
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/html
 ALL_LOCAL += htmldocs
 .PHONY: htmldocs
@@ -107,3 +106,8 @@ ALL_LOCAL += htmldocs
 check-docs:
 	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)/linkcheck
 .PHONY: check-docs
+
+clean-docs:
+	rm -rf $(SPHINXBUILDDIR)/*
+CLEAN_LOCAL += clean-docs
+.PHONY: clean-docs
-- 
2.9.3



More information about the dev mailing list