CC = javac ALGS4 = ../../algs4 BIN = Outcast SRCS = SAP.java Outcast.java WordNet.java Outcast.java CLASSES = SAP.class Outcast.class WordNet.class Outcast.class CLASSPATH = -classpath '.:$(ALGS4)/algs4.jar:$(ALGS4)/stdlib.jar' .SUFFIXES: .SUFFIXES: .java .class .PHONY: clean $(BIN) .java.class: $(CC) -Xlint $(CLASSPATH) $< $(ALGS4)/bin/checkstyle $< $(BIN): $(CLASSES) test: $(BIN) $(CLASSES) java $(CLASSPATH) $(BIN) zip: $(BIN) $(ALGS4)/bin/findbugs $(BIN).class rm -f *.zip zip wordnet.zip $(SRCS) clean: rm -f *.class *.zip $(BIN)