add Makefile target for tikz demo
authorAdam Megacz <megacz@cs.berkeley.edu>
Tue, 26 Apr 2011 23:30:27 +0000 (16:30 -0700)
committerAdam Megacz <megacz@cs.berkeley.edu>
Tue, 26 Apr 2011 23:30:27 +0000 (16:30 -0700)
examples/Makefile

index 362dd53..082c82e 100644 (file)
@@ -3,3 +3,10 @@ all:
                `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
+       cd .build; pdflatex test.tex
+       open .build/test.pdf