Skip to content
Snippets Groups Projects
Unverified Commit 649e28ad authored by Varac's avatar Varac
Browse files

Add make browser Make target

parent 0c6d689f
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,15 @@ SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
docdir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
browser: html
xdg-open file://$(docdir)/_build/html/index.html
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
......
......@@ -9,4 +9,4 @@ documentation, using Sphinx:
Then point your browser to the newly generated pages:
xdg-open file://$PWD/_build/html/index.html
make browser
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment