# Makefile for octave's scripts/deprecated directory
#
# Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009 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 = deprecated

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

include $(TOPDIR)/Makeconf

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

SOURCES = beta_cdf.m beta_inv.m beta_pdf.m beta_rnd.m \
  binomial_cdf.m binomial_inv.m binomial_pdf.m binomial_rnd.m \
  chisquare_cdf.m chisquare_inv.m chisquare_pdf.m chisquare_rnd.m \
  clearplot.m clg.m com2str.m create_set.m \
  dmult.m exponential_cdf.m exponential_inv.m \
  exponential_pdf.m exponential_rnd.m f_cdf.m f_inv.m f_pdf.m \
  f_rnd.m gamma_cdf.m gamma_inv.m gamma_pdf.m gamma_rnd.m \
  geometric_cdf.m geometric_inv.m geometric_pdf.m geometric_rnd.m \
  hypergeometric_cdf.m hypergeometric_inv.m hypergeometric_pdf.m \
  hypergeometric_rnd.m intersection.m is_bool.m is_complex.m \
  is_list.m is_matrix.m is_scalar.m is_square.m is_stream.m \
  is_struct.m is_symmetric.m is_vector.m iscommand.m israwcommand.m \
  isstr.m lchol.m loadimage.m lognormal_cdf.m lognormal_inv.m \
  lognormal_pdf.m lognormal_rnd.m mark_as_command.m \
  mark_as_rawcommand.m meshdom.m normal_cdf.m normal_inv.m \
  normal_pdf.m normal_rnd.m pascal_cdf.m pascal_inv.m pascal_pdf.m \
  pascal_rnd.m poisson_cdf.m poisson_inv.m poisson_pdf.m \
  poisson_rnd.m polyinteg.m setstr.m spatan2.m spchol2inv.m \
  spcholinv.m spcumprod.m spcumsum.m spchol.m spdet.m spdiag.m \
  spfind.m spinv.m spkron.m splchol.m split.m splu.m spmax.m spmin.m \
  spprod.m spqr.m spsum.m spsumsq.m struct_contains.m \
  struct_elements.m t_cdf.m t_inv.m t_pdf.m t_rnd.m uniform_cdf.m \
  uniform_inv.m uniform_pdf.m uniform_rnd.m unmark_command.m \
  unmark_rawcommand.m weibcdf.m weibinv.m weibpdf.m weibrnd.m \
  weibull_cdf.m weibull_inv.m weibull_pdf.m weibull_rnd.m \
  wiener_rnd.m str2mat.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/deprecated
.PHONY: dist

check-m-sources:
	@$(do-check-m-sources)
.PHONY: check-m-sources
