m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b32ae73822aff7009451bbea0896a8965ff3e025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: bnfc parser interpreter
	# ghc -dynamic --make Parser/TestSchmim.hs -o Parser/TestSchmim

bnfc:
	bnfc -haskell -p Parser schmim.bnfc

parser: bnfc
	happy -gca Parser/ParSchmim.y
	alex -g Parser/LexSchmim.x

interpreter: parser bnfc
	ghc -dynamic Schmim.hs -o interpreter

clean:
	-rm -f Parser/*.log Parser/*.aux Parser/*.hi Parser/*.o Parser/*.dvi *.o *.hi interpreter