Skip to content
This repository
Newer
Older
100644 32 lines (26 sloc) 0.587 kb
e6021fb5 »
2011-03-29 More makefile tweaks
1 GUIDES = $(notdir $(wildcard guide/*.md))
2 HTML_GUIDES = $(addprefix public/,$(GUIDES:.md=.html))
3f5060eb »
2011-03-29 Better processing
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
58d5a89c »
2011-03-29 Simple initial makefile
11
12 html: $(HTML_GUIDES)
13
3f5060eb »
2011-03-29 Better processing
14 public/index.html : guide/index.md
15 pandoc \
16 $(PANDOC_DEFAULT_OPTIONS) \
17 $< \
18 -o $@
19
e6021fb5 »
2011-03-29 More makefile tweaks
20 public/%.html : guide/%.md
21 pandoc \
3f5060eb »
2011-03-29 Better processing
22 $(PANDOC_DEFAULT_OPTIONS) \
23 $(PANDOC_GUIDE_OPTIONS) \
e6021fb5 »
2011-03-29 More makefile tweaks
24 $< \
25 -o $@
58d5a89c »
2011-03-29 Simple initial makefile
26
89722361 »
2011-03-30 Deploys script and navigation
27 deploy: html
28 scp -r public/* debug1:/var/www/nodeguide.com
29
58d5a89c »
2011-03-29 Simple initial makefile
30 clean:
e6021fb5 »
2011-03-29 More makefile tweaks
31 rm -vf public/*.html
Something went wrong with that request. Please try again.