Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (27 sloc) 0.935 kB
bc3c839 @andreas-marschke add Makefile with support for pdf,epub and html
andreas-marschke authored
1
2 include_dir=build
3 pandoc=`which pandoc`
4 source=index.md
5 title="Developing Backbone.js Applications"
6 filename="backbone-fundamentals"
7 pdflatex=`which pdflatex`
8
9 all: pdf html epub rtf
10
11 pdf: $(sorce)
12 $(pandoc) -s $(source) -o $(filename).tex -w latex \
13 --title-prefix=$(filename)
14 $(pdflatex) $(filename).tex
15
16 html: $(source)
17 $(pandoc) -s $(source) -o index.html -c style.css \
18 --include-before-body=$(include_dir)/author.html \
19 --include-before-body=$(include_dir)/share.html \
20 --include-after-body=$(include_dir)/stats.html \
21 --title-prefix=$(title)
22
23 epub: $(source)
24 $(pandoc) -s $(source) -t epub --epub-metadata=$(include_dir)/metadata.xml \
25 -o $(filename).epub --epub-stylesheet=epub.css --title-prefix=$(title) \
26 --epub-cover-image=img/cover.jpg
27
28 clean:
29 rm -f $(filename).aux \
30 $(filename).db \
31 $(filename).log \
32 $(filename).out \
33 $(filename).tex
Something went wrong with that request. Please try again.