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

TOPDIR = ../..

script_sub_dir = miscellaneous

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

include $(TOPDIR)/Makeconf

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

SOURCES = ans.m bincoeff.m bug_report.m bunzip2.m cast.m comma.m \
  compare_versions.m computer.m copyfile.m cputime.m \
  delete.m dir.m doc.m dos.m dump_prefs.m \
  fileattrib.m fileparts.m flops.m fullfile.m getfield.m gunzip.m \
  inputname.m ispc.m isunix.m license.m list_primes.m ls.m \
  ls_command.m menu.m mex.m mexext.m mkoctfile.m movefile.m \
  news.m not.m orderfields.m pack.m paren.m parseparams.m \
  semicolon.m setfield.m single.m substruct.m tar.m \
  tempdir.m tempname.m texas_lotto.m unix.m unpack.m untar.m \
  unzip.m ver.m version.m warning_ids.m xor.m zip.m

DISTFILES = 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/miscellaneous
.PHONY: dist
