-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 727 Bytes
/
Makefile
File metadata and controls
46 lines (33 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ENV=_env
PIP=$(ENV)/bin/pip3
NIKOLA=$(ENV)/bin/nikola
SITE=superLimitBreak.uk
RUN_NIKOLA=cd $(SITE) ; ../$(NIKOLA)
DEPENDENCIES_PYTHON:=dependencies.python.txt
help:
# install
install: $(ENV)
$(ENV):
virtualenv -p python3 $(ENV)
$(PIP) install --upgrade pip
$(PIP) install -r $(DEPENDENCIES_PYTHON)
.PHONY: upgrade_pip
upgrade_pip:
$(PIP) install --upgrade pip ; $(PIP) install --upgrade -r $(DEPENDENCIES_PYTHON)
clean:
rm -rf $(ENV)
.PHONY: run
run:
#$(RUN_NIKOLA) auto --browser # Broken?
.PHONY: build
build:
$(RUN_NIKOLA) build
$(SITE)/output:
$(RUN_NIKOLA) build
.PHONY: serve
serve: $(SITE)/output
$(RUN_NIKOLA) serve --browser
new_post:
$(RUN_NIKOLA) new_post
new_page:
$(RUN_NIKOLA) new_page