-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (39 loc) · 1.53 KB
/
Makefile
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
# This version of the Makefile assumes that pandoc and (enough of) TeX are
# available.
.PHONY: default
default: html pdf
# We don't try to provide an HTML version of the slides in this version
# - use the PDF produces by 'slides' instead.
# For various reasons, pandoc won't render markup-history-extended-notes.rst
# as PDF, so we don't bother.
.PHONY: html
html:
rst2html.py README.rst README.html
rst2html.py redis-slides.rst redis-slides.html
rst2html.py notes-per-slide.rst notes-per-slide.html
# The available aspect ratio of slides (for beamer only) are 1610 for 16:10,
# 169 for 16:9, 149 for 14:9, 141 for 1.41:1, 54 for 5:4, 43 for 4:3 which is
# the default, and 32 # for 3:2. It's probably enough to go for the following
# pair of resolutions.
# We also make the notes-per-slide as PDF, because we can and it might be useful.
.PHONY: pdf
pdf: slides
pandoc notes-per-slide.rst -o notes-per-slide.pdf -V papersize:a4
.PHONY: slides
slides:
pandoc redis-slides.rst -t beamer -o redis-slides-4x3.pdf -V aspectratio:43
pandoc redis-slides.rst -t beamer -o redis-slides-16x9.pdf -V aspectratio:169
.PHONY: 43
43:
pandoc redis-slides.rst -t beamer -o redis-slides-4x3.pdf -V aspectratio:43
open redis-slides-4x3.pdf
.PHONY: clean
clean:
rm -f *.html
.PHONY: help
help:
@echo 'make same as: make html pdf'
@echo 'make pdf create redis-slides-[4x3|16x9].pdf and other PDF files'
@echo 'make html create HTML files using rst2html'
@echo 'make slides just create redis-slides-[4x3|16x9].pdf'
@echo 'make clean delete HTML files'