-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 876 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 876 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
31
32
33
34
35
36
JAVA_SRC=$(wildcard *.java)
ifeq ($(JTARGET),)
JTARGET:=$(shell for i in 1.6 8 11 17; do if javac -source $$i -target $$i RJavaTools.java >/dev/null 2>&1; then echo $$i; break; fi; done)
endif
JFLAGS=-source $(JTARGET) -target $(JTARGET)
JAVAC=javac
JAVA=java
JAVADOC=javadoc
JAVADOCFLAGS=-author -version -breakiterator -link http://java.sun.com/j2se/1.4.2/docs/api
all: compile test
compile: $(JAVA_SRC)
$(JAVAC) $(JFLAGS) $(JAVA_SRC)
test_RJavaTools: compile
$(JAVA) RJavaTools_Test
test_RJavaArrayTools: compile
$(JAVA) RJavaArrayTools_Test
test_ArrayWrapper:
$(JAVA) ArrayWrapper_Test
test_RectangularArrayBuilder:
$(JAVA) RectangularArrayBuilder_Test
test: compile test_RJavaTools test_RJavaArrayTools test_ArrayWrapper test_RectangularArrayBuilder
javadoc:
$(JAVADOC) $(JAVADOCFLAGS) -d javadoc $(JAVA_SRC)
clean:
rm -rfv *.class *~
.PHONY: all clean