Makefile: generate tags (for vim)
[mate.git] / Makefile
1 JAVAC = javac
2 JAVA_FILES := $(wildcard tests/*.java)
3 CLASS_FILES := $(JAVA_FILES:.java=.class)
4
5 all: mate $(CLASS_FILES)
6
7 test: mate
8         ./mate tests/Test.class
9
10 %.class: %.java
11         javac $<
12
13 trap.o mate: Mate.hs ./src/Utilities.hs trap.c
14         ghc --make -Wall -O2 $^ -o mate
15
16 clean:
17         rm -f *.hi *.o mate src/*.class
18
19 tags: Mate.hs src/Utilities.hs trap.o
20         @# @-fforce-recomp, see
21         @# http://stackoverflow.com/questions/7137414/how-do-i-force-interpretation-in-hint
22         ghc -fforce-recomp -e :ctags $^