SOURCES=CalculIRPPTest.java TESTS=irpp.CalculIRPPTest #--------- JAVA=java JAVAC=javac CLASSPATH=classes:test:/usr/local/eclipse32/eclipse/plugins/org.junit4_4.1.0.1/junit-4.1.jar:irpp-1.0.jar CLASSES=$(SOURCES:.java=.class) .PHONY=all clean tests build src emma junit all: build build: src src: $(CLASSES) %Test.class: %Test.java $(JAVAC) -d test -cp $(CLASSPATH) $^ %.class: %.java $(JAVAC) -d classes -cp $(CLASSPATH) $^ junit: $(JAVA) -cp $(CLASSPATH) org.junit.runner.JUnitCore $(TESTS) emma: $(JAVA) -cp emma.jar emmarun -sourcepath . -r html -cp $(CLASSPATH) junit.textui.TestRunner $(TESTS) clean: rm -f classes/*.class rm -f test/*.class