diff options
Diffstat (limited to 'Algorithms/Part-II/1-WordNet/Makefile')
-rw-r--r-- | Algorithms/Part-II/1-WordNet/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Algorithms/Part-II/1-WordNet/Makefile b/Algorithms/Part-II/1-WordNet/Makefile new file mode 100644 index 0000000..70edcc8 --- /dev/null +++ b/Algorithms/Part-II/1-WordNet/Makefile @@ -0,0 +1,28 @@ + +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) |