SOURCES=Triangle.java TriangleTest.java TESTS=TriangleTest #--------- JAVA=java JAVAC=javac CLASSPATH=classes:test:/usr/local/junit3.8.1/junit.jar:emma.jar CLASSES=$(SOURCES:.java=.class) .PHONY=all clean tests build src emma all: build build: src src: $(CLASSES) %Test.class: %Test.java $(JAVAC) -d test -cp $(CLASSPATH) $^ %.class: %.java $(JAVAC) -d classes -cp $(CLASSPATH) $^ emma: $(JAVA) -cp emma.jar emmarun -sourcepath . -r html -cp $(CLASSPATH) junit.textui.TestRunner $(TESTS) clean: rm -f classes/*.class rm -f test/*.class