Makefile 732 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:
24
	cd classes ; jar -cfvm ../ScigenChecker_Local`date +%Y-%m-%d`.jar ../manifest.mf *; cd ..
25 26
	cp  ScigenChecker_Local`date +%Y-%m-%d`.jar ScigenChecker_Local.jar 

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

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