From 0e9e9d445789c0eef9b6606d38b9972759775bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Sun, 9 May 2021 19:29:01 +0200 Subject: [PATCH] Remove the venv dir and introduce VENVDIR --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b9f2a0d9c..62d126666 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,9 @@ # You can set these variables from the command line. PYTHON = python3 +VENVDIR = ./venv SPHINXOPTS = -SPHINXBUILD = ./venv/bin/sphinx-build +SPHINXBUILD = $(VENVDIR)/bin/sphinx-build PAPER = BUILDDIR = _build @@ -39,11 +40,11 @@ help: @echo " serve to serve devguide on the localhost (8000)" clean: - -rm -rf $(BUILDDIR)/* + -rm -rf $(BUILDDIR)/* $(VENVDIR) venv: - $(PYTHON) -m venv venv - ./venv/bin/python3 -m pip install -r requirements.txt + $(PYTHON) -m venv $(VENVDIR) + $(VENVDIR)/bin/python3 -m pip install -r requirements.txt html: venv $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html