# Makefile for octave's scripts/plot directory
#
# Copyright (C) 1994, 1995, 1996, 1997, 2002, 2005, 2006, 2007
#               John W. Eaton
#
# This file is part of Octave.
# 
# Octave is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
# 
# Octave 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 General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Octave; see the file COPYING.  If not, see
# <http://www.gnu.org/licenses/>.

TOPDIR = ../..

script_sub_dir = plot

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@

include $(TOPDIR)/Makeconf

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

SOURCES = \
  __area__.m \
  __axes_limits__.m \
  __axis_label__.m \
  __bar__.m \
  __contour__.m \
  __default_plot_options__.m \
  __errcomm__.m \
  __errplot__.m \
  __go_close_all__.m \
  __go_draw_axes__.m \
  __go_draw_figure__.m \
  __gnuplot_version__.m \
  __line__.m \
  __next_line_color__.m \
  __patch__.m \
  __plr1__.m \
  __plr2__.m \
  __plt1__.m \
  __plt2__.m \
  __plt2mm__.m \
  __plt2mv__.m \
  __plt2ss__.m \
  __plt2vm__.m \
  __plt2vv__.m \
  __plt__.m \
  __plt_get_axis_arg__.m \
  __pltopt1__.m \
  __pltopt__.m \
  ancestor.m \
  area.m \
  axes.m \
  axis.m \
  bar.m \
  barh.m \
  box.m \
  clf.m \
  close.m \
  closereq.m \
  contour.m \
  contourc.m \
  contourf.m \
  drawnow.m \
  errorbar.m \
  figure.m \
  fill.m \
  findobj.m \
  fplot.m \
  gca.m \
  gcf.m \
  grid.m \
  hidden.m \
  hist.m \
  hold.m \
  isfigure.m \
  ishold.m \
  legend.m \
  line.m \
  loglog.m \
  loglogerr.m \
  mesh.m \
  meshc.m \
  meshgrid.m \
  ndgrid.m \
  newplot.m \
  orient.m \
  patch.m \
  pcolor.m \
  peaks.m \
  pie.m \
  plot.m \
  plot3.m \
  polar.m \
  print.m \
  quiver.m \
  replot.m \
  ribbon.m \
  semilogx.m \
  semilogxerr.m \
  semilogy.m \
  semilogyerr.m \
  shading.m \
  shg.m \
  sombrero.m \
  spinmap.m \
  stairs.m \
  stem.m \
  subplot.m \
  surf.m \
  surface.m \
  surfc.m \
  text.m \
  title.m \
  view.m \
  xlabel.m \
  xlim.m \
  ylabel.m \
  ylim.m \
  zlabel.m \
  zlim.m

DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES))

FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES))
FCN_FILES_NO_DIR = $(notdir $(FCN_FILES))

all: PKG_ADD
.PHONY: all

install install-strip:
	$(do-script-install)
.PHONY: install install-strip

uninstall:
	$(do-script-uninstall)
.PHONY: uninstall

clean:
.PHONY: clean

PKG_ADD: $(FCN_FILES)
	@echo "making PKG_ADD"
	@$(do-mkpkgadd)

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

mostlyclean: clean
.PHONY: mostlyclean

distclean: clean
	rm -f Makefile PKG_ADD
.PHONY: distclean

maintainer-clean: distclean
	rm -f tags TAGS
.PHONY: maintainer-clean

dist:
	ln $(DISTFILES) ../../`cat ../../.fname`/scripts/plot
.PHONY: dist
