Add the atbegshi package, which is not available on Debian.
[matthijs/master-project/final-presentation.git] / Makefile
1 FILE            = clash-haskell09
2 LHS2TEX = lhs2TeX -v --tt
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         christiaan/fir.lhs \
12         christiaan/dotproduct.lhs \
13         christiaan/structure.lhs \
14         christiaan/reductioncircuit.lhs \
15         christiaan/recursion.lhs
16
17 LHFORMATS = \
18         talk.fmt
19         
20 TEXSRCS = \
21   preamble.tex
22
23 SVGFIGURES = \
24   mealymachine2.svg \
25   mealymachine2-func-red.svg \
26   mealymachine2-state-red.svg \
27   reducer.svg \
28   figures/schakelingen/CMOS_NAND_Layout.svg
29
30 default: clash-haskell09
31
32 clash-haskell09: texs figs $(TEXSRCS) $(LHFORMATS)
33         $(LHS2TEX) $(FILE).lhs > $(FILE).tex; \
34         $(LATEXMK) $(FILE); \
35         open $(FILE).pdf; \
36         $(RM) $(LHSRCS:.lhs=.tex)
37
38 texs : $(LHSRCS:.lhs=.tex) 
39 %.tex : %.lhs
40         $(LHS2TEX) $< > $@
41
42 figs : $(SVGFIGURES:.svg=.pdf)
43 %.pdf : %.svg
44         $(RSVG) $< > $@
45
46 clean:
47                 latexmk -C clash-haskell09
48                 $(RM) $(SVGFIGURES:.svg=.pdf)
49                 $(RM) $(FILE).tex
50                 $(RM) $(FILE).ptb
51                 $(RM) $(FILE).synctex.gz
52                 $(RM) $(FILE).nav
53                 $(RM) $(FILE).snm
54                 $(RM) *.hi *.o *.aux