X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=examples%2FMakefile;h=b9fa6a78cdcfe9f0d14c0a6171b1ffc28def6d94;hp=e411f3205201e901dc01031edabdedd4848b907d;hb=8064e50e47f40228631f8a96ba28cbfb570c76ff;hpb=14afe39e905be69eabd8944b97bb2b731bf44939 diff --git a/examples/Makefile b/examples/Makefile index e411f32..b9fa6a7 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,12 +1,31 @@ -all: +ghc_opt := -fwarn-incomplete-patterns -Werror + +open: + make demo + open .build/test.pdf + +#sanity += BiGArrow.hs +#sanity += CircuitExample.hs +sanity += CommandSyntaxExample.hs +sanity += DotProduct.hs +sanity += GArrowTutorial.hs +sanity += GArrowVerilog.hs +sanity += ImmutableHeap.hs +sanity += IsomorphismForCodeTypes.hs +sanity += LambdaCalculusInterpreter.hs +sanity += TypeSafeRun.hs +sanity += Unflattening.hs + +sanity: ../../../inplace/bin/ghc-stage2 -dcore-lint -fforce-recomp -fcoqpass -ddump-coqpass -ddump-to-file \ - `ls *.hs | grep -v Regex | grep -v Unify.hs | grep -v GArrowTikZ.hs ` +RTS -K500M - ../../../inplace/bin/ghc-stage2 -dcore-lint -fforce-recomp \ - RegexMatcher.hs Unify.hs GArrowTikZ.hs + $(sanity) \ + +RTS -K500M + -tikz: +demo: mkdir -p .build - ../../../inplace/bin/ghc-stage2 -odir .build -hidir .build GArrowTikZ.hs Unify.hs Demo.hs -o .build/demo + ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build -c Demo.hs -fforce-recomp + ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build --show-iface .build/Demo.hi + ../../../inplace/bin/ghc-stage2 $(ghc_opt) -odir .build -hidir .build GArrowTikZ.hs Demo.hs DemoMain.hs Unify.hs -o .build/demo ./.build/demo > .build/test.tex cd .build; pdflatex test.tex - open .build/test.pdf