Fix typos
[matthijs/master-project/haskell-symposium-talk.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         PolyAlu.lhs \
10         reducer.lhs \
11         howdoesitwork.lhs \
12         demo.lhs \
13         summary.lhs
14
15 LHFORMATS = \
16         talk.fmt
17         
18 TEXSRCS = \
19   preamble.tex
20
21 SVGFIGURES = \
22   mealymachine2.svg \
23   mealymachine2-func-red.svg \
24   mealymachine2-state-red.svg \
25   simpleCPU.svg \
26   reducer.svg
27
28 default: clash-haskell09
29
30 clash-haskell09: texs figs $(TEXSRCS) $(LHFORMATS)
31         $(LHS2TEX) $(FILE).lhs > $(FILE).tex; \
32         $(LATEXMK) $(FILE); \
33         open $(FILE).pdf; \
34         $(RM) $(LHSRCS:.lhs=.tex)
35
36 texs : $(LHSRCS:.lhs=.tex) 
37 %.tex : %.lhs
38         $(LHS2TEX) $< > $@
39
40 figs : $(SVGFIGURES:.svg=.pdf)
41 %.pdf : %.svg
42         $(RSVG) $< > $@
43
44 clean:
45                 latexmk -CA clash-haskell09
46                 $(RM) $(SVGFIGURES:.svg=.pdf)
47                 $(RM) $(FILE).tex
48                 $(RM) $(FILE).ptb
49                 $(RM) $(FILE).synctex.gz
50                 $(RM) $(FILE).nav
51                 $(RM) $(FILE).snm
52                 $(RM) *.hi *.o *.aux