Require the beamerthemesplit package.
[matthijs/master-project/final-presentation.git] / Makefile
1 FILE            = clash-haskell09
2 LHS2TEX = lhs2TeX -v --poly --haskell
3 LATEXMK = latexmk -pdf
4 RM                      = rm -f
5 RSVG    = rsvg-convert --format=pdf
6
7 LHSRCS = \
8         introduction.lhs \
9         matthijs/introduction.lhs \
10         christiaan/introduction.lhs
11
12 LHFORMATS = \
13         talk.fmt
14         
15 TEXSRCS = \
16   preamble.tex
17
18 SVGFIGURES = \
19   mealymachine2.svg \
20   mealymachine2-func-red.svg \
21   mealymachine2-state-red.svg \
22   reducer.svg \
23   figures/schakelingen/CMOS_NAND_Layout.svg
24
25 default: clash-haskell09
26
27 clash-haskell09: texs figs $(TEXSRCS) $(LHFORMATS)
28         $(LHS2TEX) $(FILE).lhs > $(FILE).tex; \
29         $(LATEXMK) $(FILE); \
30         open $(FILE).pdf; \
31         $(RM) $(LHSRCS:.lhs=.tex)
32
33 texs : $(LHSRCS:.lhs=.tex) 
34 %.tex : %.lhs
35         $(LHS2TEX) $< > $@
36
37 figs : $(SVGFIGURES:.svg=.pdf)
38 %.pdf : %.svg
39         $(RSVG) $< > $@
40
41 clean:
42                 latexmk -C clash-haskell09
43                 $(RM) $(SVGFIGURES:.svg=.pdf)
44                 $(RM) $(FILE).tex
45                 $(RM) $(FILE).ptb
46                 $(RM) $(FILE).synctex.gz
47                 $(RM) $(FILE).nav
48                 $(RM) $(FILE).snm
49                 $(RM) *.hi *.o *.aux