forked from benblamey/stanford-nlp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 769 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 769 Bytes
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
# This is a rudimentary Makefile for rebuilding Stanford CoreNLP.
# We actually use ant (q.v.) or a Java IDE.
JAVAC = javac
JAVAFLAGS = -O -d classes -encoding utf-8
# Builds the classes' jar file
corenlp: source
mkdir -p classes
$(JAVAC) $(JAVAFLAGS) src/edu/stanford/nlp/*/*.java \
src/edu/stanford/nlp/*/*/*.java \
src/edu/stanford/nlp/*/*/*/*.java \
src/edu/stanford/nlp/*/*/*/*/*.java \
src/edu/stanford/nlp/*/*/*/*/*/*.java
cd classes ; jar -cfm ../stanford-corenlp-`date +%Y-%m-%d`.jar ../src/META-INF/MANIFEST.MF edu ; cd ..
# Before making, unjar the source jar file in the 'src' directory
source:
if [ ! -e src ] ; then \
mkdir src ; cd src ; jar -xf ../stanford-corenlp-*-sources.jar; \
fi;
clean:
rm -rf classes
rm -rf src