Makefile 627 Bytes
Newer Older
Christophe Rhodes's avatar
Christophe Rhodes committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include ../../java.mk

TESTCLASSFILES = NaiveStringMatchTest.class RKStringMatchTest.class KMPStringMatchTest.class
CLASSFILES = StringMatch.class NaiveStringMatch.class RKStringMatch.class KMPStringMatch.class StringMatchTest.class $(TESTCLASSFILES)

CLASSPATHS += ../../00/java

all: $(CLASSFILES)

test: all
	(((($(JAVA) -Xss10m $(CP) $(CLASSPATH) org.junit.runner.JUnitCore NaiveStringMatchTest; echo $$? >&3) | egrep -v \(org.junit\|sun.reflect\|java.lang.reflect\) >&4) 3>&1) | (read xs; exit $$xs)) 4>&1

clean:
	-rm -f $(TESTCLASSFILES) test.xml

%.class: %.java
	$(JAVAC) $(CP) $(CLASSPATH) $^

.PHONY: test all clean