# Generated automatically from Makefile.in by configure.
#   Copyright (C) 1988, 1990, 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

# directory specifics
VPATH = //1/ez/dejagnu-1.3/dejagnu/testsuite
srcdir = //1/ez/dejagnu-1.3/dejagnu/testsuite
prefix = /usr/local
exec_prefix = ${prefix}
host = NONE

.PHONY: info install-info check installcheck dvi install
info:
install:
dvi:
install-info:
check:
installcheck:
.NOEXPORT:
TCLHDIR = -I//1/ez/dejagnu-1.3/tcl/generic

RUNTESTFLAGS =
EXPECT = ` \
  if [ -f $${rootme}/../../expect/expect ] ; then \
    echo $${rootme}/../../expect/expect ; \
  else echo expect ; fi`

RUNTEST = ` \
  if [ -f ${srcdir}/../runtest ] ; then \
    echo ${srcdir}/../runtest ; \
  else echo runtest ;  fi`


all:

check:	site.exp all
	rootme=`pwd`; export rootme; \
	srcdir=${srcdir} ; export srcdir ; \
	EXPECT=${EXPECT} ; export EXPECT ; \
	if [ -f $${rootme}/../../expect/expect ] ; then  \
	   TCL_LIBRARY=`echo -I//1/ez/dejagnu-1.3/tcl/generic | sed -e 's/-I//' -e 's/generic/library/'` ; \
	   export TCL_LIBRARY ; fi ; \
	${RUNTEST} ${RUNTESTFLAGS} RUNTEST=${RUNTEST} --tool runtest --srcdir ${srcdir}

site.exp: ./config.status Makefile
	@echo "Making a new config file..."
	-@rm -f ./tmp?
	@touch site.exp
	-@mv site.exp site.bak
	@echo "## these variables are automatically generated by make ##" > ./tmp0
	@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
	@echo "# add them to the last section" >> ./tmp0
	@echo "set tool runtest" >> ./tmp0
	@echo "set srcdir ${srcdir}" >> ./tmp0
	@echo "set objdir `pwd`" >> ./tmp0
	@echo "set host_triplet ${host}" >> ./tmp0
	@echo "set tmpdir `pwd`/tmpdir" >> ./tmp0
	@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
		@cat ./tmp0 > site.exp
	@cat site.bak | sed \
			-e '1,/^## All variables above are.*##/ d' >> site.exp
	-@rm -f ./tmp?

clean mostlyclean:
	rm -f a.out [Ee]rrs tags mklog core ${OBJS} ${PROG} x.* xXx.*

distclean maintainer-clean realclean: clean
	rm -f config.status Makefile calc.h calc.log calc.plog calc.psum
	rm -f calc.sum site.exp
	rm -rf tmpdir

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) config.status
	@echo "Rebuilding the Makefile..."
	$(SHELL) ./config.status

configure: $(srcdir)/configure.in $(srcdir)/Makefile.in $(srcdir)/../aclocal.m4
	@echo "Rebuilding configure..."
	@cd ${srcdir} ;\
	autoconf --localdir=${srcdir}/..
     
config.status:
	@echo "Rebuilding config.status..."
	$(SHELL) ./config.status --recheck
