Skip to content

Commit 5b65cdf

Browse files
committed
Makefile: Consolidate documentation targets, and add "htmlclean"
* removed docs and docs-only targets * apidoc : generate apidoc * htmldoc-only : build apidoc, build html * htmldoc : build apidoc, build html and open in browser * htmlclean : remove documentation build artifacts
1 parent b17bbdf commit 5b65cdf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ test_docker:
3939

4040
apidoc:
4141
cd docs && $(MAKE) apidoc
42-
@echo ""
43-
@echo "To view the PDF documentation open: docs/_build/html/index.html"
4442

45-
htmldoc:
43+
htmldoc-only: apidoc
4644
cd docs && $(MAKE) html
47-
@echo ""
48-
@echo "To view the PDF documentation open: docs/_build/html/index.html"
4945

50-
docs-only: htmldoc
46+
htmlclean:
47+
cd docs && $(MAKE) clean
5148

52-
docs: docs-only
49+
htmldoc-open:
50+
@echo ""
51+
@echo "To view the HTML documentation open: docs/_build/html/index.html"
5352
open docs/_build/html/index.html || xdg-open docs/_build/html/index.html
5453

54+
htmldoc: htmldoc-only htmldoc-open
55+
5556
pdfdoc:
5657
cd docs && $(MAKE) latexpdf
5758
@echo ""

0 commit comments

Comments
 (0)