1. Gustavo Picon
  2. django-taggable

Commits

Gustavo Picon  committed 29d1f6a

updating docs/Makefile

  • Participants
  • Parent commits df798cf
  • Branches default

Comments (0)

Files changed (1)

File docs/Makefile

View file
 SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 PAPER         =
-HTMLDIR       = html
+BUILDDIR      = _build
 
 # Internal variables.
 PAPEROPT_a4     = -D latex_paper_size=a4
 PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
 
 	@echo "  changes   to make an overview of all changed/added/deprecated items"
 	@echo "  linkcheck to check all external links for integrity"
 	@echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
+	@echo "  coverage   Coverage"
 
 clean:
-	#-rm -rf $(BUILDDIR)/*
-	-rm -rf _build _sources _static *.html *.js .buildinfo *.inv *.orig
+	-rm -rf $(BUILDDIR)/*
 
 html:
-	mkdir -p $(HTMLDIR) _build/doctrees _static
-	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTMLDIR)
+	mkdir -p _static
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 	@echo
-	@echo "Build finished. The HTML pages are in $(HTMLDIR)"
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
 dirhtml:
 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
 	@echo "Testing of doctests in the sources finished, look at the " \
 	      "results in $(BUILDDIR)/doctest/output.txt."
+
+coverage:
+	$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
+	@echo "Coverage, " \
+	      "results in $(BUILDDIR)/coverage"