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

all: classes doc jar

classes:
	mkdir -p classes
18
	$(JAVAC) $(JAVAFLAGS) $(JAVACLASSPATH) src/fr/imag/Scidetect/*/*.java 
19 20

doc:
21
	$(JAVADOC) src/*/*/*/*/*
22 23

jar:
24
	cd classes ; jar -cfvm ../ScigenChecker_Local`date +%Y-%m-%d`.jar ../MANIFEST.MF *; cd ..
25 26 27 28
	cp  ScigenChecker_Local`date +%Y-%m-%d`.jar ScigenChecker_Local.jar 

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