diff options
-rw-r--r-- | Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1,13 +1,15 @@ | |||
1 | all: install build serve | 1 | all: serve |
2 | 2 | ||
3 | install: venv | 3 | serve: build |
4 | ./venv/bin/pip install -U "Nikola[extras]" | 4 | ./venv/bin/nikola serve |
5 | |||
6 | venv: | ||
7 | python3 -m venv ./venv | ||
8 | 5 | ||
9 | build: | 6 | build: venv/bin/nikola |
10 | ./venv/bin/nikola build --backend=sqlite3 | 7 | ./venv/bin/nikola build --backend=sqlite3 |
11 | 8 | ||
12 | serve: | 9 | venv/bin/nikola: venv/bin/python3 |
13 | ./venv/bin/nikola serve | 10 | ./venv/bin/pip install -U wheel "Nikola[extras]" |
11 | |||
12 | venv/bin/python3: | ||
13 | python3 -m venv ./venv | ||
14 | ./venv/bin/pip install --upgrade pip | ||
15 | |||