# Generated automatically from Makefile.in by configure.

# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix).  The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.

prefix =	/usr/local
exec_prefix =	${prefix}

# Directory containing library files:
LIB_DIR =       $(exec_prefix)/lib

# Directory which contains the library of scotty files.
SCOTTY_DIR =	$(LIB_DIR)/scotty

# Directory which is used to hold auto-loaded scotty scripts.
LIBRARY_DIR =	$(SCOTTY_DIR)/library

# Directory in which holds the program scotty:
BIN_DIR =	$(exec_prefix)/bin

# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL =		/bin/sh

#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in.  You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------

INSTALL =		/usr/bin/install -c
INSTALL_PROGRAM =	${INSTALL}
INSTALL_DATA =		${INSTALL} -m 644
SRC_DIR =		.

#----------------------------------------------------------------
# The information below should be usable as is.  The configure
# script won't modify it and you shouldn't need to modify it
# either.
#----------------------------------------------------------------

SRCS =	dialog.tcl output.tcl snmp.tcl ifload.tcl

all: tclIndex

tclIndex: ../scotty $(SRCS)
	../scotty -nc 'cd $(SRC_DIR); auto_mkindex . *.tcl; exit'

install: tclIndex
	@if [ ! -d $(LIBRARY_DIR) ] ; then \
		mkdir -p $(LIBRARY_DIR); \
	else true; \
	fi
	for f in README $(SRCS) tclIndex ; do \
		$(INSTALL_DATA) $(SRC_DIR)/$$f $(LIBRARY_DIR); \
	done

clean:
	@rm -f tclIndex core *~

distclean: clean
	@rm -f Makefile TAGS *.bak lmake.???
