.PHONY: tags check documentation sphinx-apidoc test DOC_OUTPUT = doc.rendered PYTEST_FLAGS = $(if $(shell python -m pytest -VV | grep pytest-cov), \ --cov=mu4web --cov-branch --cov-report=html --full-trace) tags: ctags `find mu4web -type f -name '*.py'` run: python -m mu4web check: mypy -p mu4web flake8 mu4web flake8 test mypy test sphinx-apidoc: sphinx-apidoc --separate --force -o doc mu4web $(DOC_OUTPUT)/index.html: sphinx-apidoc sphinx-build -b dirhtml doc $(DOC_OUTPUT) documentation: $(DOC_OUTPUT)/index.html test: python -m pytest $(PYTEST_FLAGS) test