-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.51 KB
/
Makefile
File metadata and controls
56 lines (45 loc) · 1.51 KB
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
47
48
49
50
51
52
53
54
55
56
PELICAN?=pelican
PELICANOPTS?=
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/conf.py
PYTHONDONTWRITEBYTECODE=1
export PYTHONDONTWRITEBYTECODE
help:
@echo 'Makefile for a pelican Web site '
@echo ' '
@echo 'Usage: '
@echo ' make html (re)generate the web site '
@echo ' make clean remove the generated files '
@echo ' make regenerate regenerate files upon modification '
@echo ' make publish generate using production settings '
@echo ' make serve [PORT=8000] serve site at http://localhost:8000'
.PHONY: html
html:
$(PELICAN) $(PELICANOPTS)
.PHONY: html-staging
html-staging:
SITEURL=http://staging.arescentral.org $(PELICAN) $(PELICANOPTS)
.PHONY: html-public
html-public:
SITEURL=https://arescentral.org $(PELICAN) $(PELICANOPTS)
.PHONY: clean
clean:
rm -rf $(OUTPUTDIR)
.PHONY: regenerate
regenerate:
$(PELICAN) -r $(PELICANOPTS)
.PHONY: serve
serve:
ifdef PORT
$(PELICAN) -lr $(PORT)
else
$(PELICAN) -lr
endif
.PHONY: stage
stage: html-staging
rsync -rcv --delete output/ staging.arescentral.org:/srv/www/staging.arescentral.org/htdocs/
.PHONY: deploy
deploy: html-public
rsync -rcv --delete output/ arescentral.org:/srv/www/arescentral.org/htdocs/