forked from felixge/nodeguide.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (34 loc) · 707 Bytes
/
Makefile
File metadata and controls
39 lines (34 loc) · 707 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
GUIDES = $(notdir $(wildcard guide/*.pdc))
HTML_GUIDES = $(addprefix public/,$(GUIDES:.pdc=.html))
PANDOC_DEFAULT_OPTIONS = \
--to html5 \
-c css/screen.css \
-B template/header.html \
-A template/footer.html \
-H template/meta.html
PANDOC_GUIDE_OPTIONS = \
-B template/navigation.html \
--toc
html: $(HTML_GUIDES)
public/index.html : guide/index.pdc
pandoc \
$(PANDOC_DEFAULT_OPTIONS) \
$< \
-o $@
public/%.html : guide/%.pdc
pandoc \
$(PANDOC_DEFAULT_OPTIONS) \
$(PANDOC_GUIDE_OPTIONS) \
$< \
-o $@
deploy: html
rsync \
--recursive \
--progress \
--stats \
--verbose \
--exclude ".*" \
public/ \
debug1:/var/www/nodeguide.com
clean:
rm -vf public/*.html