Skip to content

Commit e6ed424

Browse files
committed
Makefile suggestions
1 parent fb7f510 commit e6ed424

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@ CPYTHON_PATH = ../cpython
22
PACKAGE_ABS_PATH = $(shell pwd)/$(shell find dist/python-docs-theme-*.tar.gz)
33

44

5-
.PHONY: all
6-
all: install
5+
.PHONY: html
6+
html: venv
77
cd $(CPYTHON_PATH)/Doc && \
88
make html
99

1010

11-
.PHONY: install
12-
install:
11+
.PHONY: venv
12+
venv:
13+
python3 -m pip install build
1314
python3 -m build
14-
cd $(CPYTHON_PATH)/Doc && \
15-
./venv/bin/pip install $(PACKAGE_ABS_PATH)
15+
cd $(CPYTHON_PATH)/Doc \
16+
&& make venv \
17+
&& ./venv/bin/pip install $(PACKAGE_ABS_PATH)
1618

1719
.PHONY: help
1820
help:
19-
@echo "all: default rule; run the \`install\` rule, and also rebuild the cpython docs"
20-
@echo "install: build the package, and install it into the virtual environment"
21+
@echo "html: default rule; run the \`venv\` rule, and also rebuild the CPython docs"
22+
@echo "venv: build the package, and install it into the virtual environment"
2123
@echo " at $(CPYTHON_PATH)/Doc/venv"

0 commit comments

Comments
 (0)