#
# This file is the toplevel Makefile for [incr Tcl].  If it has the
# name "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.
#
# RCS: $Id: Makefile.in,v 1.4 1999/07/07 20:26:31 damon Exp $

# 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 =	@prefix@
exec_prefix =	@exec_prefix@

subdirs =	@subdirs@
alldirs =	@alldirs@

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

all:
	for dir in $(subdirs) ; do \
		(cd $$dir; $(MAKE) $@) \
	done;

test:
	for dir in $(subdirs) ; do \
		(cd $$dir; $(MAKE) $@) \
	done;

install:
	for dir in $(subdirs) ; do \
		(cd $$dir; $(MAKE) $@) \
	done;

install-binaries:
	for dir in $(subdirs) ; do \
		(cd $$dir; $(MAKE) $@) \
	done;

install-libraries:
	for dir in $(subdirs) ; do \
		(cd $$dir; $(MAKE) $@) \
	done;

clean:
	for dir in $(alldirs) ; do \
		echo cleaning $$dir; \
		(cd $$dir; $(MAKE) $@) \
	done;

distclean:
	rm -f Makefile config.log config.status config.cache
	for dir in $(alldirs) ; do \
		echo dist cleaning $$dir; \
		(cd $$dir; $(MAKE) $@) \
	done;


#
# Target to create a proper Tcl distribution from information in the
# master source directory.  DISTDIR must be defined to indicate where
# to put the distribution.
#

configure: configure.in
	autoconf
	for dir in $(subdirs) ; do \
		(cd $$dir; autoconf) \
	done;

# DO NOT DELETE THIS LINE -- make depend depends on it.
