Makefile: Adds a target to build docs from the root dir.

This commit is contained in:
Frank Sachsenheim 2017-10-04 20:31:50 +02:00
parent 26796f6985
commit b2959a91c5
2 changed files with 8 additions and 2 deletions

View File

@ -126,8 +126,7 @@ These are the basic steps needed to start developing on Sphinx.
* Build the documentation and check the output for different builders::
cd doc
make clean html latexpdf
make docs target="clean html latexpdf"
* Run code style checks and type checks (type checks require mypy)::

View File

@ -114,3 +114,10 @@ covertest:
.PHONY: build
build:
@$(PYTHON) setup.py build
.PHONY: docs
docs:
ifndef target
$(info You need to give a provide a target variable, e.g. `make docs target=html`.)
endif
$(MAKE) -C doc $(target)