summaryrefslogtreecommitdiff
path: root/docs/core-spec/Makefile
blob: 9449a0e1af6aab59db45a6013bd15d4140c5e418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
OTT_FILES = CoreSyn.ott CoreLint.ott
OTT_TEX   = CoreOtt.tex
OTT_OPTS  = -tex_show_meta false
TARGET    = core-spec

$(TARGET).pdf: $(TARGET).tex $(OTT_TEX)
	latex -output-format=pdf $<

$(TARGET).tex: $(TARGET).mng $(OTT_FILES)
	ott $(OTT_OPTS) -tex_filter $< $@ $(OTT_FILES)

$(OTT_TEX): $(OTT_FILES)
	ott -tex_wrap false $(OTT_OPTS) -o $@ $^

.PHONY: clean
clean:
	rm -f $(TARGET).pdf $(TARGET).tex $(OTT_TEX) *.aux *.fdb_latexmk *.log