summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/1-WordNet/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-04-03 23:40:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-04-08 20:57:27 +0200
commit7f3c934a60d2b4e56608aa0e777e3868620b5f31 (patch)
treefb9deefd7bd3500457006ba0b49c5edd4b2efa14 /Algorithms/Part-II/1-WordNet/Makefile
parent31effd10b34f4de8bbb3a509187eebb5cc0f3b65 (diff)
downloadcoursera-7f3c934a60d2b4e56608aa0e777e3868620b5f31.zip
coursera-7f3c934a60d2b4e56608aa0e777e3868620b5f31.tar.gz
Algorithms-II : 1-WordNet: replace run.sh with Makefile
Diffstat (limited to 'Algorithms/Part-II/1-WordNet/Makefile')
-rw-r--r--Algorithms/Part-II/1-WordNet/Makefile28
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)