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