CC = javac ALGS4 = ../../algs4 BIN = BoggleSolver SRCS = BoggleSolver.java CLASSPATH = -classpath '.:$(ALGS4)/algs4.jar:$(ALGS4)/stdlib.jar' .SUFFIXES: .SUFFIXES: .java .class .PHONY: clean $(BIN) .java.class: $(CC) -Xlint $(CLASSPATH) $< $(ALGS4)/bin/checkstyle $< BoggleBoard.class: BoggleBoard.java $(CC) -Xlint $(CLASSPATH) $< BoggleGame.class: BoggleGame.java $(CC) -nowarn $(CLASSPATH) $< $(BIN): $(BIN).class test: $(BIN) BoggleBoard.class BoggleGame.class java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points4.txt java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points5.txt java $(CLASSPATH) $(BIN) ./data/dictionary-algs4.txt ./data/board-points200.txt zip: $(BIN) $(ALGS4)/bin/findbugs $(BIN).class rm -f *.zip zip boggle.zip $(SRCS) clean: rm -f *.class *.zip check.sh $(BIN)