forked from s-u/REngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 834 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
RENG_SRC=$(wildcard *.java)
RSRV_SRC=$(wildcard Rserve/*.java) $(wildcard Rserve/protocol/*.java)
JRI_SRC=$(wildcard JRI/*.java)
TARGETS=REngine.jar Rserve.jar
all: $(TARGETS)
JAVAC=javac
JAVADOC=javadoc
JDFLAGS=-author -version -breakiterator -link http://java.sun.com/j2se/1.4.2/docs/api/
JFLAGS+=-source 1.4 -target 1.4
REngine.jar: $(RENG_SRC)
@rm -rf org
$(JAVAC) -d . $(JFLAGS) $(RENG_SRC)
jar fc $@ org
rm -rf org
Rserve.jar: $(RSRV_SRC) REngine.jar
@rm -rf org
$(JAVAC) -d . -cp REngine.jar $(RSRV_SRC)
jar fc $@ org
rm -rf org
clean:
rm -rf org *~ $(TARGETS) doc
make -C Rserve clean
make -C JRI clean
test:
make -C Rserve test
rc: Rserve.jar Rserve/test/jt.java
make -C Rserve/test jt
doc: $(RENG_SRC) $(RSRV_SRC) $(JRI_SRC)
rm -rf $@
mkdir $@
$(JAVADOC) -d $@ $(JDFLAGS) $^
.PHONY: clean all test