-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
JCC = javac
JVM = java
JFLAGS = -classpath jsoup-1.8.1.jar
INDEXFLAGS = -classpath "jsoup-1.8.1.jar:src"
RUNFLAGS = -classpath "jsoup-1.8.1.jar:src" -Xmx512m
.java.class:
$(JCC) $(JFLAGS) $*.java
CLASSES = \
src/edu/nyu/cs/cs2580/DocumentFull.java \
src/edu/nyu/cs/cs2580/IndexerInvertedDoconly.java \
src/edu/nyu/cs/cs2580/RankerFavorite.java \
src/edu/nyu/cs/cs2580/DocumentIndexed.java \
src/edu/nyu/cs/cs2580/IndexerInvertedOccurrence.java \
src/edu/nyu/cs/cs2580/RankerFullScan.java \
src/edu/nyu/cs/cs2580/Document.java \
src/edu/nyu/cs/cs2580/Indexer.java \
src/edu/nyu/cs/cs2580/Ranker.java \
src/edu/nyu/cs/cs2580/Evaluator.java \
src/edu/nyu/cs/cs2580/QueryHandler.java \
src/edu/nyu/cs/cs2580/ReadCorpus.java \
src/edu/nyu/cs/cs2580/Grader.java \
src/edu/nyu/cs/cs2580/Query.java \
src/edu/nyu/cs/cs2580/ScoredDocument.java \
src/edu/nyu/cs/cs2580/IndexerFullScan.java \
src/edu/nyu/cs/cs2580/QueryPhrase.java \
src/edu/nyu/cs/cs2580/SearchEngine.java \
src/edu/nyu/cs/cs2580/IndexerInvertedCompressed.java \
src/edu/nyu/cs/cs2580/RankerConjunctive.java \
src/edu/nyu/cs/cs2580/Stemmer.java \
default:
$(JCC) $(JFLAGS) src/edu/nyu/cs/cs2580/*.java
index:
$(JVM) $(INDEXFLAGS) edu.nyu.cs.cs2580.SearchEngine --mode=index --options=conf/engine.conf
run:
$(JVM) $(RUNFLAGS) edu.nyu.cs.cs2580.SearchEngine --mode=serve --port=25808 --options=conf/engine.conf
clean:
find . -name '*.class' -exec rm -rf {} \;
find . -name '*~' -exec rm -rf {} \;