Rebased and minor refactor
USER := $(shell whoami)
OS := $(shell uname)
+CODEDIR := ../src/python/foglamp
check-root:
ifeq ($(USER), root)
@@ -84,9 +85,8 @@ develop: install-dev-dep
pip install -e .
doc: install-doc-dep
- make install-dep
- pip install -e .
- cd ../../docs && sphinx-apidoc -f -o . ../src/python/foglamp && make html
+ make install
+ cd ../../docs && sphinx-apidoc -f -o . $(CODEDIR) && make html
doc-build-test: install-tox
tox -e docs
@@ -119,9 +119,8 @@ lint-python: install-test-dep
pylint $(shell pwd) > pylint_$(shell date +%FT%T%Z).log || exit 0
live-doc: install-doc-dep
- make install-dep
- pip install -e .
- cd ../../docs && sphinx-apidoc -f -o . ../src/python/foglamp && make livehtml
+ make install
+ cd ../../docs && sphinx-apidoc -f -o . $(CODEDIR) && make livehtml
py-test: install-tox
tox -e py35
