]> ruin.nu Git - proglang.git/blob - Makefile
replace E with in
[proglang.git] / Makefile
1 all: Typechecker Interpreter Compiler
2
3 doc: Docsyntax.dvi
4
5 Docsyntax.dvi: Docsyntax.tex
6         latex Docsyntax.tex; dvips Docsyntax.dvi -o Docsyntax.ps
7
8 Testsyntax: Testsyntax.hs  Parsyntax.hs Lexsyntax.hs Abssyntax.hs
9         ghc --make Testsyntax.hs -o Testsyntax
10
11 Typechecker: Typechecker.hs  Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs
12         ghc -fglasgow-exts --make Typechecker.hs -o Typechecker
13
14 Interpreter: Interpreter.hs Interpret.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs
15         ghc -fglasgow-exts --make Interpreter.hs -o Interpreter
16
17 Compiler: Compiler.hs Compile.hs Typecheck.hs Parsyntax.hs Lexsyntax.hs Abssyntax.hs
18         ghc -fglasgow-exts --make Compiler.hs -o Compiler
19
20 Parsyntax.hs: Parsyntax.y
21         happy -gca -idebug Parsyntax.y
22
23 Lexsyntax.hs: Lexsyntax.x
24         alex -g Lexsyntax.x
25
26 clean:
27         -rm -f *.log *.aux *.hi *.o *.dvi
28         -rm -f Docsyntax.ps
29 distclean: clean
30         -rm -f Docsyntax.* Lexsyntax.* Parsyntax.* Layoutsyntax.* Skelsyntax.* Printsyntax.* Testsyntax.* Abssyntax.* Testsyntax ErrM.* SharedString.* syntax.dtd XMLsyntax.* Makefile*
31