From 346f39f243a3ef39d276612f10e0f96c8d399dfc Mon Sep 17 00:00:00 2001 From: chewingbever Date: Fri, 28 Aug 2020 12:00:21 +0200 Subject: [PATCH] Tidied up Makefile --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 423af24..56d16ab 100644 --- a/Makefile +++ b/Makefile @@ -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"