makefile 554 B

1234567891011121314151617
  1. TEX = pages/title.tex pages/1.tex pages/2.tex pages/3.tex pages/4.tex pages/5.tex pages/6.tex pages/7.tex pages/8.tex pages/9.tex pages/10.tex pages/11.tex pages/12.tex
  2. PDF = out/title.pdf out/1.pdf out/2.pdf out/3.pdf out/4.pdf out/5.pdf out/6.pdf out/7.pdf out/8.pdf out/9.pdf out/10.pdf out/11.pdf out/12.pdf out/all.pdf
  3. all: $(PDF)
  4. out/all.tex: $(TEX)
  5. runhaskell -i. gen.hs $(TEX) > $@
  6. out/%.tex: pages/%.tex
  7. runhaskell -i. gen.hs $< > $@
  8. out/%.pdf: out/%.tex
  9. pdflatex -output-directory=out $<
  10. pages/%.tex: pages/%.hs
  11. runhaskell -i. $< > $@