SOURCES=Matrice.java MatriceTest.java TESTS=MatriceTest #--------- 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 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) junit.textui.TestRunner $(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