forked from mbjoseph/git-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 723 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 723 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
# Makefile to automatically convert Markdown files
# into either a handout pdf (if filename ends with "-handout.md")
# or a slides pdf (if filename ends with "-slides.md")
#
# This uses pandoc, which needs to be installed.
slidessrc=$(shell find . -iname '*-slides.md' | sed 's/ /\\ /g')
handoutssrc=$(shell find . -iname '*-handout.md' | sed 's/ /\\ /g')
slides=$(subst .md,.pdf,$(slidessrc))
handouts=$(subst .md,.pdf,$(handoutssrc))
all : slides handouts
slides : $(slides)
handouts : $(handouts)
%-slides.pdf: %-slides.md
pandoc -i -t beamer -V theme:Warsaw -V colorlinks=true $< -o $@
%-handout.pdf: %-handout.md
pandoc -N -V geometry=height=10in,width=7.5in -V colorlinks=true --pdf-engine=xelatex $< -o $@