Makefile 975 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
# This is a simple Makefile for :
#	- compiling classes (make classes)
#	- generating the javadoc (make doc)
# 	- rebuilding the local checker (make jar) 
# 

JAVAC = javac
JAVADOC = javadoc -d doc
JAVAFLAGS = -O -d classes -encoding utf-8
JAVACLASSPATH = -cp lib/pdfbox-app-1.8.8.jar
11
SRC = src/fr/imag/forge/scidetect/Checker/Utils/*.java src/fr/imag/forge/scidetect/Checker/*.java src/fr/imag/forge/scidetect/Corpus/*.java src/fr/imag/forge/scidetect/Logger/*.java src/fr/imag/forge/scidetect/SciDetect_local/*.java src/fr/imag/forge/scidetect/TextExtractor/*.java
12 13 14

default: all

Cyril Labbe's avatar
Cyril Labbe committed
15
all: classes doc jar run
16 17 18

classes:
	mkdir -p classes
19
	$(JAVAC) $(JAVAFLAGS) $(JAVACLASSPATH) $(SRC) 
20 21

doc:
22
	$(JAVADOC) $(SRC)
23 24

jar:
Tien's avatar
Tien committed
25 26
	cd classes ; jar -cfvm ../SciDetect_Local`date +%Y-%m-%d`.jar ../manifest.mf *; cd ..
	cp  SciDetect_Local`date +%Y-%m-%d`.jar SciDetect_Local.jar 
27

Cyril Labbe's avatar
Cyril Labbe committed
28
run:
Tien's avatar
Tien committed
29
	java -jar SciDetect_Local`date +%Y-%m-%d`.jar -l checklog.txt -c Test
Cyril Labbe's avatar
Cyril Labbe committed
30

31 32
clean:
	rm -r classes; rm -r doc;