add examples of first-order (kappa calculus) terms at level-1
[coq-hetmet.git] / examples / Makefile
1 ghc_opt := -fwarn-incomplete-patterns -Werror -odir .build -hidir .build
2
3 open:
4         make demo
5         open .build/test.pdf
6
7 #sanity += BiGArrow.hs
8 sanity += KappaDemo.hs
9 sanity += CircuitExample.hs
10 sanity += CommandSyntaxExample.hs
11 sanity += DotProduct.hs
12 sanity += GArrowTutorial.hs
13 sanity += GArrowVerilog.hs
14 sanity += ImmutableHeap.hs
15 sanity += IsomorphismForCodeTypes.hs
16 sanity += LambdaCalculusInterpreter.hs
17 sanity += TypeSafeRun.hs
18 #sanity += Unflattening.hs
19
20 sanity_opts  = -dcore-lint -fforce-recomp -fcoqpass -ddump-coqpass -ddump-to-file
21 sanity_opts += -fsimpleopt-before-flatten
22 sanity_opts += -odir .build -hidir .build 
23
24 sanity:
25         for A in $(sanity); do echo; echo; ../../../inplace/bin/ghc-stage2 $(sanity_opts) $$A +RTS -K500M || exit -1; done
26
27
28 demo:
29         mkdir -p .build
30         ../../../inplace/bin/ghc-stage2 $(ghc_opt) -c Demo.hs -fforce-recomp
31         ../../../inplace/bin/ghc-stage2 $(ghc_opt) --show-iface .build/Demo.hi
32         ../../../inplace/bin/ghc-stage2 $(ghc_opt) GArrowTikZ.hs Demo.hs DemoMain.hs Unify.hs -o .build/demo
33         ./.build/demo > .build/test.tex
34         cd .build; pdflatex test.tex