-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
52 lines (37 loc) · 1.38 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
46
47
48
49
50
51
52
# Note: Added by Justin
# Requires: javac, wget, unzip
CC=javac
S=TopicalPhrases/src
B=TopicalPhrases/bin
E=external
DIRS = DataPreparation \
phraseMining \
topicmodel \
unStem
#urls for extern dependencies
SNOWBALL_URL=http://www.java2s.com/Code/JarDownload/snowball/snowball-1.0.jar.zip
MALLET_URL=http://www.java2s.com/Code/JarDownload/mallet/mallet-2.0.7.jar.zip
MALLET_DEPS_URL=http://www.java2s.com/Code/JarDownload/mallet/mallet-deps.jar.zip
TROVE_URL=http://www.java2s.com/Code/JarDownload/trove/trove-2.0.2.jar.zip
#java classpath is split on colons
# CLASSPATH = $E/snowball.jar:$E/mallet.jar:$E/mallet-deps.jar:$E/trove.jar
CLASSPATH = $E/mallet.jar:$E/snowball-20051019.jar:$E/trove-2.0.2.jar
#replace colons with spaces for extern dependencies
EXTERNS=$(subst :, , $(CLASSPATH))
CLASSDIRS= $(addprefix $B/, $(DIRS))
all: $(CLASSDIRS)
# build each proj dir
$B/%: $S/% # $(EXTERNS)
mkdir -p $@ ; \
$(CC) -classpath $(CLASSPATH) -d $@/../ $(wildcard $</*.java)
#$E/snowball.jar:
#wget -O [email protected] $(SNOWBALL_URL) ; unzip -p [email protected] > $@ ; rm -f [email protected]
#$E/mallet.jar:
#wget -O [email protected] $(MALLET_URL) ; unzip -p [email protected] > $@ ; rm -f [email protected]
#$E/mallet-deps.jar:
#wget -O [email protected] $(MALLET_DEPS_URL) ; unzip -p [email protected] > $@ ; rm -f [email protected]
#$E/trove.jar:
clean:
rm -rf $(wildcard $B/*)
#rm -rf $(wildcard $E/*)