Merge branch 'master' of darcs.haskell.org:/home/darcs/ghc
[ghc.git] / docs / core-spec / Makefile
1 OTT_FILES = CoreSyn.ott CoreLint.ott
2 OTT_TEX = CoreOtt.tex
3 OTT_OPTS = -tex_show_meta false
4 TARGET = core-spec
5
6 $(TARGET).pdf: $(TARGET).tex $(OTT_TEX)
7 latexmk -pdf $<
8
9 $(TARGET).tex: $(TARGET).mng $(OTT_FILES)
10 ott $(OTT_OPTS) -tex_filter $< $@ $(OTT_FILES)
11
12 $(OTT_TEX): $(OTT_FILES)
13 ott -tex_wrap false $(OTT_OPTS) -o $@ $^
14
15 .PHONY: clean
16 clean:
17 rm -f $(TARGET).pdf $(TARGET).tex $(OTT_TEX) *.aux *.fdb_latexmk *.log