Skip to content
Newer
Older
100644 39 lines (33 sloc) 673 Bytes
4dba40e @felixge Update makefile
authored Mar 30, 2011
1 GUIDES = $(notdir $(wildcard guide/*.pdc))
2 HTML_GUIDES = $(addprefix public/,$(GUIDES:.pdc=.html))
3f5060e @felixge Better processing
authored Mar 29, 2011
3 PANDOC_DEFAULT_OPTIONS = \
4 -5 \
5 -c css/screen.css \
6 -B template/header.html \
7 -A template/footer.html
8 PANDOC_GUIDE_OPTIONS = \
9 -B template/navigation.html \
10 --toc
58d5a89 @felixge Simple initial makefile
authored Mar 29, 2011
11
12 html: $(HTML_GUIDES)
13
4dba40e @felixge Update makefile
authored Mar 30, 2011
14 public/index.html : guide/index.pdc
3f5060e @felixge Better processing
authored Mar 29, 2011
15 pandoc \
16 $(PANDOC_DEFAULT_OPTIONS) \
17 $< \
18 -o $@
19
4dba40e @felixge Update makefile
authored Mar 30, 2011
20 public/%.html : guide/%.pdc
e6021fb @felixge More makefile tweaks
authored Mar 29, 2011
21 pandoc \
3f5060e @felixge Better processing
authored Mar 29, 2011
22 $(PANDOC_DEFAULT_OPTIONS) \
23 $(PANDOC_GUIDE_OPTIONS) \
e6021fb @felixge More makefile tweaks
authored Mar 29, 2011
24 $< \
25 -o $@
58d5a89 @felixge Simple initial makefile
authored Mar 29, 2011
26
8972236 @felixge Deploys script and navigation
authored Mar 30, 2011
27 deploy: html
fad2a24 @felixge Deploy with rsync
authored Mar 30, 2011
28 rsync \
29 --recursive \
30 --progress \
31 --stats \
32 --verbose \
33 --exclude ".*" \
34 public/ \
35 debug1:/var/www/nodeguide.com
8972236 @felixge Deploys script and navigation
authored Mar 30, 2011
36
58d5a89 @felixge Simple initial makefile
authored Mar 29, 2011
37 clean:
e6021fb @felixge More makefile tweaks
authored Mar 29, 2011
38 rm -vf public/*.html
Something went wrong with that request. Please try again.