Makefile: generate tags (for vim)
authorBernhard Urban <lewurm@gmail.com>
Mon, 2 Apr 2012 19:40:00 +0000 (21:40 +0200)
committerBernhard Urban <lewurm@gmail.com>
Mon, 2 Apr 2012 19:40:00 +0000 (21:40 +0200)
.gitignore
Makefile

index df1cda2750f673e488a456fa7228bfdb06c68e29..9332ce15575ea9ae8a92093da6827feaa308ab82 100644 (file)
@@ -1,3 +1,4 @@
 *.hi
 *.class
 mate
+tags
index 289fe3fe39708daee2d41d31055865d1c4b86928..b82354ece3fabbe96e24543934509b37ca03fe29 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,20 @@ JAVA_FILES := $(wildcard tests/*.java)
 CLASS_FILES := $(JAVA_FILES:.java=.class)
 
 all: mate $(CLASS_FILES)
+
+test: mate
        ./mate tests/Test.class
 
 %.class: %.java
        javac $<
 
-mate: Mate.hs ./src/Utilities.hs trap.c
-       ghc --make -Wall -O2 $^ -o $@
+trap.o mate: Mate.hs ./src/Utilities.hs trap.c
+       ghc --make -Wall -O2 $^ -o mate
 
 clean:
        rm -f *.hi *.o mate src/*.class
+
+tags: Mate.hs src/Utilities.hs trap.o
+       @# @-fforce-recomp, see
+       @# http://stackoverflow.com/questions/7137414/how-do-i-force-interpretation-in-hint
+       ghc -fforce-recomp -e :ctags $^