-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
29 lines (23 loc) · 1.16 KB
/
makefile
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
26
27
28
29
sourcefiles = java/br/unb/biologiaanimal/edf/EDF.java java/br/unb/biologiaanimal/edf/EDFReader.java java/br/unb/biologiaanimal/edf/EDFConstants.java java/br/unb/biologiaanimal/edf/EDFUtil.java java/br/unb/biologiaanimal/edf/EDFWriter.java
classfiles = -C $(src) br/unb/biologiaanimal/edf/EDF.class -C $(src) br/unb/biologiaanimal/edf/EDFReader.class -C $(src) br/unb/biologiaanimal/edf/EDFConstants.class -C $(src) br/unb/biologiaanimal/edf/EDFUtil.class -C $(src) br/unb/biologiaanimal/edf/EDFWriter.class
testfiles = test/br/unb/biologiaanimal/test/Test.java
runtestfiles = test/br/unb/biologiaanimal/test/Run.java
classname = br.unb.biologiaanimal.edf.EDF
testclassname = br.unb.biologiaanimal.test.Test
runtestclassname = br.unb.biologiaanimal.test.Run
targetname = target/edf.jar
manifest = manifest.txt
testfolder = test
src = java
jar: classes
jar cvfm $(targetname) $(manifest) $(classfiles)
classes:
javac -target 1.4 -source 1.4 -nowarn $(sourcefiles)
try: classes
java -cp $(src) $(classname)
compiletests:
javac -cp $(testfiles)
compileruntest:
javac -cp $(targetname) $(runtestfiles)
test: jar compileruntest
java -cp $(targetname);$(testfolder) $(runtestclassname)