# Makefile.in --
#
#	This file is a Makefile for the tcllib standard tcl library. If this
#	is "Makefile.in" then it is a template for a Makefile;  to generate 
#	the actual Makefile, run "./configure", which is a configuration script
#	generated by the "autoconf" program (constructs like "@foo@" will get
#	replaced in the actual Makefile.
#
# Copyright (c) 1999-2000 Ajuba Solutions
# Copyright (c) 2001      ActiveState Tool Corp.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.

#========================================================================
# Nothing of the variables below this line need to be changed.  Please
# check the TARGETS section below to make sure the make targets are
# correct.
#========================================================================

SHELL      = @SHELL@
PACKAGE    = @PACKAGE@
VERSION    = @VERSION@
CYGPATH    = @CYGPATH@
TCLSH_PROG = @TCLSH_PROG@
PKGNAME    = @PACKAGE@@VERSION@
PKGCNAME   = @PACKAGE@c@VERSION@

srcdir		= @srcdir@
top_srcdir	= @top_srcdir@
prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
libdir		= @libdir@
includedir	= @includedir@
datarootdir	= @datarootdir@
runstatedir	= @runstatedir@
datadir		= @datadir@
mandir		= @mandir@
incdir		= @includedir@

DESTDIR		=
pkglibdir	= $(libdir)/$(PKGNAME)
shlibdir	= $(libdir)/$(PKGCNAME)
top_builddir	= .

CONFIG_CLEAN_FILES =

#========================================================================
# Start of user-definable TARGETS section
#========================================================================

all:	install

doc:     html-doc nroff-doc

install: install-tcl install-binaries

install-tcl:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
		-no-examples -no-html \
		-pkg-path   `$(CYGPATH) $(DESTDIR)$(pkglibdir)` \
		-app-path   `$(CYGPATH) $(DESTDIR)$(bindir)` \
		-nroff-path `$(CYGPATH) $(DESTDIR)$(mandir)/mann` \
		-no-wait -no-gui

install-binaries:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` critcl \
	  -includedir `$(CYGPATH) $(DESTDIR)$(incdir)` \
	  -libdir     `$(CYGPATH) $(DESTDIR)$(libdir)` \
	  -pkg $(PKGCNAME)

install-libraries:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
		-pkg-path   `$(CYGPATH) $(DESTDIR)$(pkglibdir)` \
		-no-examples -no-html -no-nroff \
		-no-wait -no-gui -no-apps

install-applications:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
		-app-path   `$(CYGPATH) $(DESTDIR)$(bindir)` \
		-no-examples -no-html -no-nroff \
		-no-wait -no-gui -no-pkgs

install-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
		-nroff-path `$(CYGPATH) $(DESTDIR)$(mandir)/mann` \
		-no-examples -no-pkgs -no-html \
		-no-wait -no-gui -no-apps

test:
	if test -t 1 ; \
	then $(MAKE) test_interactive ; \
	else $(MAKE) test_batch ; \
	fi

test_batch:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` test run -v -s "$(TCLSH_PROG)"

test_interactive:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` test run -s "$(TCLSH_PROG)"

depend:
dist:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` gendist

critcl:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` critcl

clean:
	rm -rf doc *-doc

distclean: clean
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
	-rm -f config.status

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

uninstall-binaries:


html-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc html
nroff-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc nroff
tmml-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc tmml
wiki-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc wiki
latex-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc ps
list-doc:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` doc list

check:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` validate

sak-help:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/sak.tcl` help

shed:
	$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/../sherpa/sherpa.tcl` shed generate `pwd` support/tool.tcl

.PHONY: all binaries clean depend distclean doc install installdirs libraries test shed

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
