File: Makefile.am

package info (click to toggle)
plplot 5.6.1-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 30,084 kB
  • ctags: 14,146
  • sloc: ansic: 108,972; xml: 19,583; sh: 10,727; cpp: 9,049; tcl: 8,593; perl: 4,682; python: 4,332; f90: 3,697; java: 3,492; makefile: 3,400; fortran: 290; sed: 5; awk: 1
file content (122 lines) | stat: -rw-r--r-- 3,678 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# examples/java/Makefile.am for PLplot ###
### Process this file with automake to produce Makefile.in
###
# Copyright (C) 2002, 2004  Alan W. Irwin
# Copyright (C) 2004  Andrew Ross
#
# This file is part of PLplot.
#
# PLplot is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as published
# by the Free Software Foundation; version 2 of the License.
#
# PLplot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with the file PLplot; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

javafiles = \
	$(top_srcdir)/examples/java/x01.java \
	$(top_srcdir)/examples/java/x02.java \
	$(top_srcdir)/examples/java/x03.java \
	$(top_srcdir)/examples/java/x04.java \
	$(top_srcdir)/examples/java/x05.java \
	$(top_srcdir)/examples/java/x06.java \
	$(top_srcdir)/examples/java/x07.java \
	$(top_srcdir)/examples/java/x08.java \
	$(top_srcdir)/examples/java/x09.java \
	$(top_srcdir)/examples/java/x10.java \
	$(top_srcdir)/examples/java/x11.java \
	$(top_srcdir)/examples/java/x12.java \
	$(top_srcdir)/examples/java/x13.java \
	$(top_srcdir)/examples/java/x14.java \
	$(top_srcdir)/examples/java/x15.java \
	$(top_srcdir)/examples/java/x16.java \
	$(top_srcdir)/examples/java/x17.java \
	$(top_srcdir)/examples/java/x18.java \
	$(top_srcdir)/examples/java/x19.java \
	$(top_srcdir)/examples/java/x22.java \
	$(top_srcdir)/examples/java/x23.java

javademos = \
	$(top_srcdir)/examples/java/README.javademos \
	$(javafiles) \
	Makefile.examples

# These are for make check compilation of examples.
PLPLOT_CLASSPATH= `pwd`/$(top_builddir)/bindings/java

example_classes = \
	x01.class \
	x02.class \
	x03.class \
	x04.class \
	x05.class \
	x06.class \
	x07.class \
	x08.class \
	x09.class \
	x10.class \
	x11.class \
	x12.class \
	x13.class \
	x14.class \
	x15.class \
	x16.class \
	x17.class \
	x18.class \
	x19.class \
	x22.class \
	x23.class

if enable_java

# Duplicate this so the source appears in the examples/java directory for
# the user to read
examples_javadir = $(DATA_DIR)/examples/java
examples_java_DATA = $(javademos)

# Note the Java binding classes are actually generated in the java bindings
# directory (path = "plplot.core").  Since the examples classes are #
# generated here (path = "plplot.examples") but both must be included in the
# jar file, this later is generated here.

plplotjavadir = $(datadir)/java
plplotjava_DATA = plplot.jar

$(top_builddir)/bindings/java/jar-stamp:
	( cd $(top_builddir)/bindings/java ; make jar-stamp )

plplot.jar: $(example_classes) $(top_builddir)/bindings/java/jar-stamp \
            $(top_srcdir)/examples/java/README.javademos $(javafiles)
	$(mkdir_p) plplot/examples
	$(mkdir_p) plplot/examples/src
	cp $(top_srcdir)/examples/java/README.javademos $(example_classes) plplot/examples
	cp $(javafiles) plplot/examples/src
	$(JAR) -cf plplot.jar \
	       -C $(top_builddir)/bindings/java/ plplot/core \
	       -C . plplot/examples

endif

install-data-hook:
if enable_java
	( cd $(DESTDIR)$(examples_javadir) ; mv -f Makefile.examples Makefile )
endif

.java.class:
	$(JAVAC) $(AM_JAVACFLAGS) $(JAVACFLAGS) $< -d . -classpath $(PLPLOT_CLASSPATH)
	cp plplot/examples/$@ .

CLEANFILES = $(example_classes) plplot.jar

clean-local:
	rm -rf plplot

EXTRA_DIST = \
	$(top_srcdir)/examples/java/README.javademos \
	$(javafiles)