]> ruin.nu Git - proglang.git/blobdiff - Makefile
YEAH
[proglang.git] / Makefile
index fe345b456c3c7f00c512d080884fbaf66a810a24..f662112e8f88a49689dd97c0a3f07f7a54dc3a77 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,25 @@
-all:
-       happy -gca -idebug Parsyntax.y
-       alex -g Lexsyntax.x
+all: Typechecker Interpreter
+
+doc: Docsyntax.dvi
+
+Docsyntax.dvi: Docsyntax.tex
        latex Docsyntax.tex; dvips Docsyntax.dvi -o Docsyntax.ps
+
+Testsyntax: Testsyntax.hs  Parsyntax.hs Lexsyntax.hs Abssyntax.hs
        ghc --make Testsyntax.hs -o Testsyntax
+
+Typechecker: Typechecker.hs  Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs
        ghc -fglasgow-exts --make Typechecker.hs -o Typechecker
+
+Interpreter: Interpreter.hs Interpret.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs
+       ghc -fglasgow-exts --make Interpreter.hs -o Interpreter
+
+Parsyntax.hs: Parsyntax.y
+       happy -gca -idebug Parsyntax.y
+
+Lexsyntax.hs: Lexsyntax.x
+       alex -g Lexsyntax.x
+
 clean:
        -rm -f *.log *.aux *.hi *.o *.dvi
        -rm -f Docsyntax.ps