Makefile 716 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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

default: all

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

classes:
	mkdir -p classes
Tien's avatar
Tien committed
18
	$(JAVAC) $(JAVAFLAGS) $(JAVACLASSPATH) src/fr/imag/forge/scidetect/*/*.java 
19
20

doc:
Tien's avatar
Tien committed
21
	$(JAVADOC) src/*/*/*/*/*/*
22
23

jar:
Tien's avatar
Tien committed
24
25
	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 
26

Cyril Labbe's avatar
Cyril Labbe committed
27
run:
Tien's avatar
Tien committed
28
	java -jar SciDetect_local.jar -l checklog.txt -c Test
Cyril Labbe's avatar
Cyril Labbe committed
29

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