-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 773 Bytes
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
JFLAGS = -g
JCLASS = -cp ./src:.:$(CLASSPATH):./../../../eclipse/junit-4.5.jar
JC = javac
JVM = java
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $(JCLASS) $*.java
CLASSES = \
src/Equality.java \
src/Seq.java \
src/Node.java \
src/Edge.java \
src/Graph.java \
src/GraphSearch.java \
src/GraphSort.java \
src/GraphPath.java \
src/Parser.java \
src/FileController.java \
src/CashMeATaxi.java \
MAIN = AllTests
default: classes
classes: $(CLASSES:.java=.class)
doc:
doxygen doxConfig
cd latex && $(MAKE)
test: src/$(MAIN).class
$(JVM) $(JCLASS) org.junit.runner.JUnitCore $(MAIN)
cmat: src/CashMeATaxi.java
$(JC) $(JCLASS) $(JFLAGS) src/CashMeATaxi.java
$(JVM) $(JCLASS) src/CashMeATaxi
clean:
rm -rf html
rm -rf latex
cd src
rm **/*.class