X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=examples%2FMakefile;h=c89fb101d29de693eb0d3996cc8ccb5dd8ed3cb9;hp=7819837c6490ae3f2f70f07efbc996425050e0d2;hb=2444f0cbf7ed5c744c43dbca114a4f400cd1522f;hpb=15df3430938d7175361b848de6578aea195e612f diff --git a/examples/Makefile b/examples/Makefile index 7819837..c89fb10 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,12 +1,19 @@ +ghc_opt := -fwarn-incomplete-patterns -Werror + +open: + make demo + open .build/test.pdf + all: ../../../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 -tikz: +demo: mkdir -p .build - ../../../inplace/bin/ghc-stage2 -odir .build -hidir .build GArrowTikZ.hs Unify.hs test.hs - ./test > .build/test.tex + ../../../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