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

TOPDIR = ../../..

script_sub_dir = control/system

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

include $(TOPDIR)/Makeconf

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

SOURCES = __abcddims__.m __syschnamesl__.m __sysconcat__.m \
  __syscont_disc__.m __sysdefioname__.m __sysdefstname__.m \
  __sysgroupn__.m __tf2sysl__.m __tfl__.m __zp2ssg2__.m \
  abcddim.m buildssic.m c2d.m cellidx.m d2c.m dmr2d.m fir2sys.m \
  is_abcd.m is_controllable.m is_detectable.m is_digital.m \
  is_observable.m is_sample.m is_signal_list.m is_siso.m \
  is_stabilizable.m is_stable.m jet707.m listidx.m moddemo.m \
  ord2.m packedform.m parallel.m ss.m ss2sys.m ss2tf.m ss2zp.m \
  starp.m sys2fir.m sys2ss.m sys2tf.m sys2zp.m sysadd.m \
  sysappend.m syschtsam.m sysconnect.m syscont.m sysdimensions.m \
  sysdisc.m sysdup.m sysgetsignals.m sysgettsam.m sysgettype.m \
  sysgroup.m sysidx.m sysmin.m sysmult.m sysout.m sysprune.m \
  sysreorder.m sysrepdemo.m sysscale.m syssetsignals.m syssub.m \
  sysupdate.m tf.m tf2ss.m tf2sys.m tf2zp.m tfout.m ugain.m zp.m \
  zp2ss.m zp2sys.m zp2tf.m zpout.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/$(script_sub_dir)
.PHONY: dist
