From 7b6b52c666cd7c90b327219c493bbc8378a6676d Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Mon, 2 Apr 2012 21:40:00 +0200 Subject: [PATCH] Makefile: generate tags (for vim) --- .gitignore | 1 + Makefile | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index df1cda2..9332ce1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.hi *.class mate +tags diff --git a/Makefile b/Makefile index 289fe3f..b82354e 100644 --- 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 $^ -- 2.25.1