File: Makefile.all

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (46 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (2)
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
43
44
45
46
# JRI 0.2   (C) Simon Urbanek
# This is the actual Makefile - all autconf'ed values should
# be passed as vars, because we also want to use this for
# the Windows build that has no autoconf
#
# Note: the dependencies are often across directories mainly
# for historical reasons. The Java sources are actually compiled
# by the Makefile in the src directory, although they are here,
# because they originally belonged to src.

EX_JAVA=$(wildcard examples/*.java)
EX_CLASS=$(EX_JAVA:%.java=%.class)

TARGETS=src/JRI.jar $(JRILIB) $(EX_CLASS)

all: $(TARGETS)

src/JRI.jar:
	$(MAKE) -C src JRI.jar

src/${JRILIB}:
	$(MAKE) -C src $(JRILIB)

$(JRILIB): src/$(JRILIB)
	rm -f $@
	cp $< $@

examples/%.class: examples/%.java src/JRI.jar
	$(JAVAC) $(JFLAGS) -classpath src/JRI.jar -d examples $<

clean:
	$(MAKE) -C src clean
	rm -rf $(TARGETS) *~ examples/*.class

examples: $(EX_CLASS)

JRI_JDOCSRC=$(wildcard *.java)

doc:	$(JRI_JDOCSRC)
	rm -rf JavaDoc
	mkdir JavaDoc
	$(JAVA)doc -d JavaDoc -author -version -breakiterator -link http://java.sun.com/j2se/1.4.2/docs/api $^

.PHONY: clean all examples doc

.NOTPARALLEL: