Debian Codegraph @

language/Makefile

raw
1 #OTTLIB=/Users/sowens/ott/hol
2 OTTLIB=$(dir $(shell which ott))../hol
3
4 all: lem.pdf
5
6 lem.pdf: lem.tex
7 pdflatex lem.tex
8
9 lemTheory.uo: lemScript.sml
10 Holmake --qof -I $(OTTLIB) lemTheory.uo
11
12 lem.tex ../src/ast.ml lemScript.sml: lem.ott
13 rm -f ../src/ast.ml
14 ott -ocaml_include_terminals true -o lem.tex -o ../src/ast.ml -o lemScript.sml -picky_multiple_parses true lem.ott
15 chmod a-w ../src/ast.ml
16
17 # for ascii grammar
18 foo:
19 ott -alltt out.tex -showraw true -picky_multiple_parses true lem.ott
20
21
22 lem-inc.tex: lem.hacked.ott Makefile
23 ott -ocaml_include_terminals true -o lem-inc.pre.tex -tex_wrap false -picky_multiple_parses true lem.hacked.ott
24 sed 's/\\_aux//g' lem-inc.pre.tex > lem-inc.tex
25
26 lem.hacked.ott: lem.ott Makefile
27 grep -v NOPLDI lem.ott | sed 's/%PLDIlHACK/{{ tex }}/g' | sed 's/\^{l}//g' > lem.hacked.ott
28
29 lem.lem: lem.ott
30 ott -o lem.lem -picky_multiple_parses true lem.ott
31
32
33 clean:
34 rm -rf *~
35 -rm -rf *.uo *.ui lemTheory.sig lemTheory.sml lem.tex lemScript.sml lem.aux lem.log lem.dvi lem.ps lem_unwrapped.tex .HOLMK lem-inc.tex lem.hacked.ott
36 #lem.sys lem library/lib_cache
37