Skip to content

Commit fcc4784

Browse files
committed
Reorganize the build target commands
Set a relative path to `SPHINXBUILD` to avoid needing to activate the virtual environment
1 parent de0b83a commit fcc4784

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
6+
SPHINXBUILD = ../bin/sphinx-build
77
PAPER =
88
DOCS_DIR = ./docs/
99
BUILDDIR = ../_build/
@@ -26,11 +26,9 @@ help: ## This help message
2626
clean: ## Clean build directory
2727
cd $(DOCS_DIR) && rm -rf $(BUILDDIR)/*
2828

29-
bin/python bin/pip: ## Create virtual Python environment
30-
python3 -m venv . || virtualenv --clear --python=python3 .
31-
3229
.PHONY: build
3330
build: ## Set up training: Install requirements
31+
python3 -m venv . || virtualenv --clear --python=python3 .
3432
bin/python -m pip install --upgrade pip
3533
bin/pip install -r requirements.txt
3634

0 commit comments

Comments
 (0)