Skip to content

Commit ea73685

Browse files
authored
chore: Makefile: avoid a venv (#257)
1 parent 6c4c59e commit ea73685

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
VENV = .venv
2-
VENV_BIN := $(VENV)/bin
3-
41
.PHONY: all
52
all:
63
@echo "Run my targets individually!"
74

85
.PHONY: site
9-
site: $(VENV)
10-
$(VENV_BIN)/mkdocs build
6+
site: site-requirements.txt
7+
uvx --with-requirements $< mkdocs build
118

129
.PHONY: site-live
13-
site-live: $(VENV)
14-
$(VENV_BIN)/mkdocs serve
15-
16-
$(VENV): site-requirements.txt
17-
uv venv
18-
uv pip install -r site-requirements.txt
10+
site-live: site-requirements.txt
11+
uvx --with-requirements $< mkdocs serve
1912

2013
.PHONY: snippets
2114
snippets:

0 commit comments

Comments
 (0)