X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Makefile;fp=Makefile;h=79b8aacff434fe368893b22f2e5684e389ebe7e0;hb=d0420235340ee715db69a023bf0f6ad75d573735;hp=0000000000000000000000000000000000000000;hpb=dfa8e8c67fe722269e1b61016bffa4c9ad5bc0b6;p=matthijs%2Fmaster-project%2Ffinal-presentation.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79b8aac --- /dev/null +++ b/Makefile @@ -0,0 +1,49 @@ +FILE = clash-haskell09 +LHS2TEX = lhs2TeX -v --poly --haskell +LATEXMK = latexmk -pdf +RM = rm -f +RSVG = rsvg-convert --format=pdf + +LHSRCS = \ + introduction.lhs \ + matthijs/introduction.lhs \ + christiaan/introduction.lhs + +LHFORMATS = \ + talk.fmt + +TEXSRCS = \ + preamble.tex + +SVGFIGURES = \ + mealymachine2.svg \ + mealymachine2-func-red.svg \ + mealymachine2-state-red.svg \ + reducer.svg \ + figures/schakelingen/CMOS_NAND_Layout.svg + +default: clash-haskell09 + +clash-haskell09: texs figs $(TEXSRCS) $(LHFORMATS) + $(LHS2TEX) $(FILE).lhs > $(FILE).tex; \ + $(LATEXMK) $(FILE); \ + open $(FILE).pdf; \ + $(RM) $(LHSRCS:.lhs=.tex) + +texs : $(LHSRCS:.lhs=.tex) +%.tex : %.lhs + $(LHS2TEX) $< > $@ + +figs : $(SVGFIGURES:.svg=.pdf) +%.pdf : %.svg + $(RSVG) $< > $@ + +clean: + latexmk -CA clash-haskell09 + $(RM) $(SVGFIGURES:.svg=.pdf) + $(RM) $(FILE).tex + $(RM) $(FILE).ptb + $(RM) $(FILE).synctex.gz + $(RM) $(FILE).nav + $(RM) $(FILE).snm + $(RM) *.hi *.o *.aux