Tidied up Makefile

develop
Jef Roosens 2020-08-28 12:00:21 +02:00
parent 3c7259ce08
commit 346f39f243
1 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@ INTERPRETER=python3.8
all: run
# Re-create venv when needed
# =====VENV=====
$(VENV)/bin/activate: requirements.txt requirements-dev.txt
@ echo "Rebuilding venv..."
@ [ ! -e "$(VENV)" ] || rm -rf "$(VENV)"
@ -22,8 +22,9 @@ $(VENV)/bin/activate: requirements.txt requirements-dev.txt
build-venv: $(VENV)/bin/activate
# =====CLEANING=====
clean: clean-venv clean-cache clean-docs
clean: clean-venv clean-cache clean-docs clean-setup
# Remove venv
clean-venv:
@ -46,8 +47,9 @@ clean-setup:
@ [ ! -e "build" ] || rm -rf build
@ find . -maxdepth 1 -type d -name '*.egg-info' -exec rm -rf "{}" \;
# =====DOCS=====
docs: build-venv docs/source/conf.py docs/source/index.rst
docs: docs/source/conf.py docs/source/index.rst build-venv
@ "$(VENV)/bin/sphinx-apidoc" -f -o "$(DOCS)/source/apidoc" "$(SRC)"
@ "$(VENV)/bin/sphinx-build" "$(DOCS)/source" "$(DOCS)/build"