#
# Makefile for octave's scripts/plot directory
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering

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 = \
  __axis_label__.m \
  __bar__.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 \
  axes.m \
  axis.m \
  bar.m \
  barh.m \
  box.m \
  clf.m \
  close.m \
  closereq.m \
  contour.m \
  contourc.m \
  drawnow.m \
  errorbar.m \
  figure.m \
  fplot.m \
  gca.m \
  gcf.m \
  grid.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 \
  peaks.m \
  plot.m \
  plot3.m \
  polar.m \
  print.m \
  replot.m \
  semilogx.m \
  semilogxerr.m \
  semilogy.m \
  semilogyerr.m \
  shg.m \
  sombrero.m \
  stairs.m \
  stem.m \
  subplot.m \
  text.m \
  title.m \
  view.m \
  xlabel.m \
  ylabel.m \
  zlabel.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
