Skip to content

Commit 4a8bdea

Browse files
authored
Merge pull request #34 from skitt/activate-envs
Activate venvs for relevant commands
2 parents afeab42 + 8310938 commit 4a8bdea

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@
1313
# limitations under the License.
1414
SHELL := /bin/bash
1515

16+
all: docs
17+
1618
# Install dependencies
1719
.PHONY: install
1820
install:
1921
# Create python virtual environment
2022
python3 -m venv venv/
2123

22-
# Active virtual environment
23-
source ./venv/bin/activate
24-
25-
# Install python depdendencies
26-
pip install -r requirements.txt
24+
# Activate virtual environment and install dependencies
25+
source ./venv/bin/activate && pip install -r requirements.txt
2726

2827

29-
# Build the documentation.
28+
# Build the documentation
3029
.PHONY: docs
31-
docs:
30+
docs: install
3231
# Ensure site dir exists
3332
mkdir -p site
3433

3534
# Generate docs with mkdocs
36-
mkdocs build
35+
source ./venv/bin/activate && mkdocs build
3736

3837

3938
# Cleanup local directory

0 commit comments

Comments
 (0)