forked from bachelor-group-66-systemf/churf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (27 loc) · 976 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY : sdist clean
language : src/Grammar/Test
cabal install --installdir=. --overwrite-policy=always
src/Grammar/Test.hs src/Grammar/Lex.x src/Grammar/Par.y src/Grammar/Layout : Grammar.cf
bnfc -o src -d $<
src/Grammar/Par.hs : src/Grammar/Par.y
happy --ghc --coerce --array --info $<
src/Grammar/Lex.hs : src/Grammar/Lex.x
alex --ghc $<
src/Grammar/%.y : Grammar.cf
bnfc -o src -d $<
src/Grammar/Test : src/Grammar/Test.hs src/Grammar/Par.hs src/Grammar/Lex.hs src/Grammar/Layout
ghc src/Grammar/Test.hs src/Grammar/Par.hs src/Grammar/Lex.hs src/Grammar/Abs.hs src/Grammar/Skel.hs src/Grammar/Print.hs src/Grammar/Layout -o src/Grammar/test
Grammar.tex :
bnfc --latex Grammar.cf
Grammar.pdf : Grammar.tex
pdflatex Grammar.tex
rm Grammar.aux Grammar.log
pdf : Grammar.pdf
clean :
rm -r src/Grammar
rm churf
rm -rf dist-newstyles
rm Grammar.aux Grammar.fdb_latexmk Grammar.fls Grammar.log Grammar.synctex.gz Grammar.tex
test :
cabal v2-test
# EOF