~charles/templates

templates/slides/GNUmakefile -rw-r--r-- 950 bytes
61897d1eCharles Daniels add links to examples 5 months ago
                                                                                
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
IPEFILES=$(wildcard *.ipe)
IPEFIGURES=$(patsubst %.ipe,%.eps,$(IPEFILES))
PMDFILES=$(wildcard *.pmd)
MDFILES=$(patsubst %.pmd,%.md,$(PMDFILES))
PDFFILES=$(patsubst %.pmd,%.pdf,$(PMDFILES))
HTMLFILES=$(patsubst %.pmd,%.html,$(PMDFILES))

# configures the pandoc template to use
TEMPLATE=./eisvogel/eisvogel.tex

# configures the BiBTex bibliography to use
BIBLIOGRAPHY=./main.bib

all: $(PDFFILES) $(HTMLFILES)
.PHONY: all

%.md: %.pmd
	pweave -f pandoc $<

%.pdf: %.md $(IPEFIGURES) $(BIBLIOGRAPHY)
	pandoc -t beamer $< -o $@ --citeproc --template $(TEMPLATE) --from markdown --listings --variable urlcolor=cyan --bibliography $(BIBLIOGRAPHY)

%.html: %.md $(IPEFIGURES) $(BIBLIOGRAPHY)
	pandoc --standalone -t slidy $< -o $@ --citeproc --from markdown --listings --variable urlcolor=cyan --bibliography $(BIBLIOGRAPHY)

%.eps: %.ipe
	iperender -eps $< $@

clean:
	rm -rf ./figures
	rm -f $(PDFFILES) $(FIGURES) $(MDFILES) $(HTMLFILES)
.PHONY: clean