# examples.class/Makefile.examples.in for PLplot
###
### Process this file with configure to produce Makefile.examples
###
# 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

SHELL = /usr/bin/bash
JAVAC = /usr/bin/javac
PLPLOT_CLASSPATH = "/usr/share/java/plplot.jar"

example_classes = \
	x00.class \
	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 \
	x20.class \
	x21.class \
	x22.class \
	x23.class \
	x24.class \
	x26.class \
	x27.class \
	x28.class \
	x29.class \
	x30.class \
	x31.class \
	x33.class

all: $(example_classes)

clean:
	rm -rf plplot $(example_classes)

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

.SUFFIXES: .java .class
