-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 845 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 845 Bytes
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
junit_standalone := junit-platform-console-standalone-1.6.0.jar
junitc := javac -classpath .:$(junit_standalone)
junit := java -classpath .:$(junit_standalone)
args := org.roundrockisd.stonypoint.test.SimpleConsoleLauncher --classpath . --exclude-engine=junit-vintage
VPATH := src
# class files
sphs := org/roundrockisd/stonypoint
Rational := $(sphs)/Rational.class
RationalTests := $(sphs)/test/RationalTests.class
SimpleConsoleLauncher := $(sphs)/test/SimpleConsoleLauncher.class
.PHONY: clean test
test: $(Rational) $(RationalTests) $(SimpleConsoleLauncher)
$(junit) $(args) --scan-class-path
clean:
@find . -name '*.class' -type f -delete
@rm -r org
$(Rational): Rational.java
javac -d . Rational.java
$(RationalTests): RationalTests.java
$(junitc) -d . $^
$(SimpleConsoleLauncher): SimpleConsoleLauncher.java
$(junitc) -d . $^