# Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
DIST_COMMON = $(srcdir)/Makedist.mk $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in
subdir = test
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/uses/ac_cond_with.m4 \
	$(top_srcdir)/uses/ac_set_default_paths_system.m4 \
	$(top_srcdir)/uses/ax_configure_args.m4 \
	$(top_srcdir)/uses/ax_enable_builddir_uname.m4 \
	$(top_srcdir)/uses/ax_expand_prefix.m4 \
	$(top_srcdir)/uses/ax_spec_file.m4 \
	$(top_srcdir)/uses/ax_spec_package_version.m4 \
	$(top_srcdir)/uses/ax_warning_default_pkgconfig.m4 \
	$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
	html-recursive info-recursive install-data-recursive \
	install-dvi-recursive install-exec-recursive \
	install-html-recursive install-info-recursive \
	install-pdf-recursive install-ps-recursive install-recursive \
	installcheck-recursive installdirs-recursive pdf-recursive \
	ps-recursive uninstall-recursive
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
  distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EXTRAMODULES = @EXTRAMODULES@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WITHDEF_CALL_THREADING = @WITHDEF_CALL_THREADING@
WITHDEF_MODULES = @WITHDEF_MODULES@
WITHDEF_SBR_CALL_THREADING = @WITHDEF_SBR_CALL_THREADING@
WITHDEF_SBR_THREADING = @WITHDEF_SBR_THREADING@
WITHOUT_CALL_THREADING = @WITHOUT_CALL_THREADING@
WITHOUT_MODULES = @WITHOUT_MODULES@
WITHOUT_SBR_CALL_THREADING = @WITHOUT_SBR_CALL_THREADING@
WITHOUT_SBR_THREADING = @WITHOUT_SBR_THREADING@
WITHVAL_CALL_THREADING = @WITHVAL_CALL_THREADING@
WITHVAL_MODULES = @WITHVAL_MODULES@
WITHVAL_SBR_CALL_THREADING = @WITHVAL_SBR_CALL_THREADING@
WITHVAL_SBR_THREADING = @WITHVAL_SBR_THREADING@
WITH_CALL_THREADING = @WITH_CALL_THREADING@
WITH_MODULES = @WITH_MODULES@
WITH_SBR_CALL_THREADING = @WITH_SBR_CALL_THREADING@
WITH_SBR_THREADING = @WITH_SBR_THREADING@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
am__leading_dot = @am__leading_dot@
am__tar = @am__tar@
am__untar = @am__untar@
ax_enable_builddir_sed = @ax_enable_builddir_sed@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
subdirs = @subdirs@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = anstests1
_TESTS = locals-ext.4th loop-test.4th \
	compare.4th defs.4th arith.4th string.4th stack.4th \
	environ.4th exceptn.4th \
	coretest.4th dbltest.4th postpone.4th \
        queryapp.4th

nomodules = @WITHOUT_MODULES@ nomodules
CLEANFILES = *.out *.diff
_EXTRA_DIST = *.4th *.sh *.fs *.fr *.blk *.ok
EXTRA_DIST = \
  answords.fs \
  arith.4th \
  arith.sh \
  arith.test.ok \
  benchm.blk \
  bubble.fs \
  checkans.4th \
  checkans.fs \
  checkans.nomodules.ok \
  checkans.sh \
  checkans.test64.ok \
  checkans.test.ok \
  compare.4th \
  compare.sh \
  compare.test.ok \
  compspeed.fs \
  core.fr \
  coretest.4th \
  coretest.fs \
  coretest.sh \
  coretest.test.ok \
  dbltest.4th \
  dbltest.fs \
  deferred.fs \
  deferred-x.4th \
  deferred-x.fs \
  deferred-x.test64.ok \
  deferred-x.test.ok \
  defs.4th \
  defs.sh \
  defs.test.ok \
  dstester.fs \
  dstrings-test.fs \
  environ.4th \
  environ.nomodules.ok \
  environ.sh \
  environ.test64.ok \
  environ.test.ok \
  exceptn.4th \
  exceptn.sh \
  exceptn.test.ok \
  fib.fs \
  file.4th \
  file.sh \
  file.test.ok \
  float.4th \
  float.nomodules.ok \
  float.sh \
  float.test64.ok \
  float.test.ok \
  forth-signal.4th \
  fpnostack.4th \
  fpnostack.nomodules.ok \
  fpnostack.sh \
  fpnostack.test64.ok \
  fpnostack.test.ok \
  fp-stack.4th \
  fp-stack.fs \
  fp-stack.nomodules.ok \
  fp-stack.test64.ok \
  fp-stack.test.ok \
  hashvocdistri.fs \
  intactv.4th \
  locals-ext.4th \
  loop-test.4th \
  loop-test.sh \
  loop-test.test.ok \
  matrix.fs \
  mini-oof.fs \
  moof-exm.fs \
  moofglos.fs \
  number-prefixes.4th \
  number-prefixes.fs \
  number-prefixes.test64.ok \
  number-prefixes.test.ok \
  parse-name.4th \
  parse-name.fs \
  parse-name.test64.ok \
  parse-name.test.ok \
  postpone.4th \
  postpone.fs \
  postpone.sh \
  postpone.test.ok \
  queryapp.4th \
  queryapp.sh \
  queryapp.test64.ok \
  queryapp.test.ok \
  search-order.4th \
  search-order.fs \
  search-order.sh \
  search-order.test.ok \
  sieve.fs \
  sievem.fs \
  siev.fs \
  sokoban.4th \
  sokoban.fs \
  speedwhile.fs \
  stack.4th \
  stack.sh \
  stack.test.ok \
  string.4th \
  string.sh \
  string.test.ok \
  suite.4th \
  tester.fr \
  tester.fs \
  test-num-prefixes2.4th \
  test-num-prefixes2.fs \
  test-num-prefixes2.test64.ok \
  test-num-prefixes2.test.ok \
  test-num-prefixes.4th \
  test-num-prefixes.fs \
  test-num-prefixes.test64.ok \
  test-num-prefixes.test.ok \
  trydstrings.fs \
  tt.4th \
  tt.fs \
  wordsets.4th \
  wordsets.fs \
  wordsets.nomodules.ok \
  wordsets.sh \
  wordsets.test.ok \
  $(NULL)

SCRIPTDIR = $(srcdir)/..
PFE = ../pfe/pfe$(EXEEXT)
PFE_CHECK_ARGS = --bye --quiet $(PFE_SCRIPTDIR_STRING) $(PFE_LIB_PATH_STRING)
PFE_LIB_PATH_STRING = --lib-path-string=../pfe/.libs
PFE_SCRIPTDIR_STRING = --inc-path-string=$(SCRIPTDIR)
# PFE_SCRIPTDIR_STRING = -I $(SCRIPTDIR)
WARNDIFFS = diff -uw
DIFFS = diff -u
SKIPS = queryapp

# tests mean to check if the latest changes to the package made for
# some kind of difference in behaviour with respect to some checks.
# if this target is run for the first time (virgin call), it will 
# simply create local reference output, i.e. it will always succeed 
DIFFFLAGS = -bB
all: all-recursive

.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/Makedist.mk $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  test/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
	@failcom='exit 1'; \
	for f in x $$MAKEFLAGS; do \
	  case $$f in \
	    *=* | --[!k]*);; \
	    *k*) failcom='fail=yes';; \
	  esac; \
	done; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    dot_seen=yes; \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	  || eval $$failcom; \
	done; \
	if test "$$dot_seen" = "no"; then \
	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
	fi; test -z "$$fail"

$(RECURSIVE_CLEAN_TARGETS):
	@failcom='exit 1'; \
	for f in x $$MAKEFLAGS; do \
	  case $$f in \
	    *=* | --[!k]*);; \
	    *k*) failcom='fail=yes';; \
	  esac; \
	done; \
	dot_seen=no; \
	case "$@" in \
	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
	  *) list='$(SUBDIRS)' ;; \
	esac; \
	rev=''; for subdir in $$list; do \
	  if test "$$subdir" = "."; then :; else \
	    rev="$$subdir $$rev"; \
	  fi; \
	done; \
	rev="$$rev ."; \
	target=`echo $@ | sed s/-recursive//`; \
	for subdir in $$rev; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	  || eval $$failcom; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done
ctags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
	done

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	mkid -fID $$unique
tags: TAGS

TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
	  include_option=--etags-include; \
	  empty_fix=.; \
	else \
	  include_option=--include; \
	  empty_fix=; \
	fi; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  if test "$$subdir" = .; then :; else \
	    test ! -f $$subdir/TAGS || \
	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
	  fi; \
	done; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	    $$tags $$unique; \
	fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	test -z "$(CTAGS_ARGS)$$tags$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$tags $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
	  if test "$$subdir" = .; then :; else \
	    test -d "$(distdir)/$$subdir" \
	    || $(MKDIR_P) "$(distdir)/$$subdir" \
	    || exit 1; \
	    distdir=`$(am__cd) $(distdir) && pwd`; \
	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
	    (cd $$subdir && \
	      $(MAKE) $(AM_MAKEFLAGS) \
	        top_distdir="$$top_distdir" \
	        distdir="$$distdir/$$subdir" \
		am__remove_distdir=: \
		am__skip_length_check=: \
	        distdir) \
	      || exit 1; \
	  fi; \
	done
check-am: all-am
	$(MAKE) $(AM_MAKEFLAGS) check-local
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-recursive
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive

clean-am: clean-generic mostlyclean-am

distclean: distclean-recursive
	-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags

dvi: dvi-recursive

dvi-am:

html: html-recursive

info: info-recursive

info-am:

install-data-am:

install-dvi: install-dvi-recursive

install-exec-am:

install-html: install-html-recursive

install-info: install-info-recursive

install-man:

install-pdf: install-pdf-recursive

install-ps: install-ps-recursive

installcheck-am:

maintainer-clean: maintainer-clean-recursive
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-recursive

mostlyclean-am: mostlyclean-generic

pdf: pdf-recursive

pdf-am:

ps: ps-recursive

ps-am:

uninstall-am:

.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
	install-strip

.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
	all all-am check check-am check-local clean clean-generic \
	ctags ctags-recursive distclean distclean-generic \
	distclean-tags distdir dvi dvi-am html html-am info info-am \
	install install-am install-data install-data-am install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
	install-pdf install-pdf-am install-ps install-ps-am \
	install-strip installcheck installcheck-am installdirs \
	installdirs-am maintainer-clean maintainer-clean-generic \
	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
	tags-recursive uninstall uninstall-am


ok : $(_TESTS:.4th=.ok)
chk:  $(_TESTS:.4th=.out)
	for f in $(_TESTS:.4th=.out) ; do mv $$f `basename $$f .out`.chk ; done

%.out : %.4th
	@ echo 'pfe --bye --quiet $< >$@' \
	; { pfe --bye --quiet "$<" 2>&1 } \
	| perl -p -e '/\e/ and $$_ = "";'  >$@
	@ if test "0" = `cat $@ | wc -l | sed -e "s/ *//g"` \
	; then echo "NO OUTPUT FROM " $@ \
	; fi 

%.ok : %.out
	@ test -f $*.our || cp $*.out $*.our 
	@ if test $*.out \
	; then diff -uw $*.our $*.out >$@ \
	; else echo "" >$@ \
	; fi
	@ if test "0" != `cat $@ | wc -l | sed -e "s/ *//g"` \
	; then echo $* FAIL \
	; else echo $* OK \
	; fi

clean-test:
	-rm -f *.ok *.out

clean-test-all: clean
	-rm -f *.our

testlist:
	{ echo "EXTRA_DIST = "; (cd $(srcdir) && ls $(_EXTRA_DIST)); } \
	| sed -e "/=/!s/^/  /" -e "s/\$$/ \\\\/" > $(srcdir)/Makedist.mk \
	; echo "  \$$(NULL)" >> $(srcdir)/Makedist.mk

../pfe/pfe$(EXEEXT) :
	(cd ../pfe && $(MAKE) `basename $@`)

anstests:
	cd anstests1 && $(MAKE) check

# check-tests will do some minor sanity checks. There may be something awefully
# wrong if these fail. check-local is also called by "make check" or distcheck
checks: check-local anstests
check-local:  ../pfe/pfe$(EXEEXT)
	test -d $(SCRIPTDIR)/test
	@ OK="" ; BAD="" ; WARN="" ; SKIP="" \
	; echo "# $(PFE) $(PFE_CHECK_ARGS) ..." \
	; for f in $(SCRIPTDIR)/test/*.4th \
	; do check=`basename $$f .4th` \
	;  if echo ":$(SKIPS):" | grep ":$$check:" >/dev/null  \
	;  then echo "$$check skipped (SKIPS=$(SKIPS):)" \
	;    SKIP="$$SKIP $$check"; continue \
	;  fi \
	;  if test -r "$(SCRIPTDIR)/test/$$check.test.ok" \
	;  then echo -n test/$$check \
	;   if test -f $(SCRIPTDIR)/test/$$check.txt \
	;    then cat $(SCRIPTDIR)/test/$$check.txt \
	|    cat| $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out 2>&1 \
	;    else $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out 2>&1 ; fi \
	;   ok="BAD" \
	;   for logfile in $(SCRIPTDIR)/test/$$check.*.ok; do : \
	;     if test -f "$$logfile"; then : \
	;       log=`basename "$$logfile" .ok` \
	;       $(DIFFS) "$$logfile" $$check.out > $$log.diff \
	;       if test -s $$log.diff; then : \
	;         $(WARNDIFFS) "$$logfile" $$check.out > $$log.warn.diff \
	;         if test -s $$log.warn.diff; then : \
	;         else ok="$$log.ok:WARN"; fi \
	;       else ok="$$log.ok"; break \
	;       fi \
	;      fi \
	;   done \
	;   echo ... "$$ok" \
	;   if test "$$ok" = "BAD"; then BAD="$$BAD $$check" \
	;   else case "$$ok" in *:WARN) WARN="$$WARN $$check" \
	;        ;; *) OK="$$OK $$check" ;; esac \
	;   fi \
	;  elif test -r "$(SCRIPTDIR)/test/$$check.sh" \
	;  then echo test/$$check .... \
	;   if test "$(SED)" = ":" ; then SKIP="$$SKIP $$check" \
	;   else if test -f $(SCRIPTDIR)/test/$$check.txt \
	;    then cat $(SCRIPTDIR)/test/$$check.txt \
	|    cat| $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out \
	;    else $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out ; fi \
	;   if test `cat $$check.out | wc -l ` = "0" \
	;   then if grep "no .* wordset" $$check.out \
        ;        then SKIP="$$SKIP $$check" \
        ;        else BAD="$$BAD $$check" ; echo "... nothing" ; fi else : \
	;   if $(SHELL) "$(SCRIPTDIR)/test/$$check.sh" $$check.out \
	;   then OK="$$OK $$check" ; elif test "$$?" = "11" \
	;   then SKIP="$$SKIP $$check" ; else BAD="$$BAD $$check" \
	;   fi fi fi \
	;  elif test -r "$(SCRIPTDIR)/test/$$check.pl" \
	;  then echo test/$$check .... \
	;   if test "$(PERL)" = ":" ; then SKIP="$$SKIP $$check" \
	;   else if test -f $(SCRIPTDIR)/test/$$check.txt \
	;    then cat $(SCRIPTDIR)/test/$$check.txt \
	|    cat| $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out \
	;    else $(PFE) $(PFE_CHECK_ARGS) $$f >$$check.out ; fi \
	;   if test `cat $$check.out | wc -l ` = "0" \
	;   then if grep "no .* wordset" $$check.out \
        ;        then SKIP="$$SKIP $$check" \
        ;        else BAD="$$BAD $$check" ; echo "... nothing" ; fi else : \
	;   if $(PERL) "$(SCRIPTDIR)/test/$$check.pl" $$check.out \
	;   then OK="$$OK $$check" ; elif test "$$?" = "11" \
	;   then SKIP="$$SKIP $$check" ; else BAD="$$BAD $$check" \
	;   fi fi fi \
	;  fi \
	; done \
	; if test -n "$$SHOWBADTESTOUT" ; then for f in $$BAD ...; do : \
	;   if test -f "$$f.out"; then echo "==== $$f"; cat $$f.out; fi \
	; done; fi \
	; test -z "$$OK"   || echo "OK   : $$OK" \
	; test -z "$$BAD"  || echo "BAD  : $$BAD" \
	; test -z "$$WARN" || echo "WARN : $$WARN" \
	; test -z "$$SKIP" || echo "SKIP : $$SKIP" \
	; test -z "$$BAD" # let the check fail

environ.out: $(srcdir)/environ.testW.ok $(srcdir)/environ.test64W.ok

$(srcdir)/environ.testW.ok : $(srcdir)/environ.test.ok
	cat $< | sed -e "s| *=|=|" >> $@
$(srcdir)/environ.test64W.ok : $(srcdir)/environ.test64.ok
	cat $< | sed -e "s| *=|=|" >> $@
tests: 
	test -d $(SCRIPTDIR)/test
	@ OK="" ; BAD="" \
	; for f in $(SCRIPTDIR)/test/*.4th \
	; do : \
	;  check=`basename $$f .4th` \
	;  if test -r "$(SCRIPTDIR)/test/$$check.chk" \
	;  then echo $$check .... \
	;   $(PFE) --bye --quiet -I $(SCRIPTDIR) $$f >$$check.out \
	;   test -f $$check.our || cp $$check.out $$check.our \
	;   diffs=`diff $(DIFFFLAGS) $$check.our $$check.out | wc -l` \
	;   if test "$$diffs" -ne "0" \
	;   then BAD="$$BAD $$check" \
	;    echo $$check: " ... HAS $$diffs DIFFERENCES!!!" \
	;   else OK="$$OK $$check" \
	;   fi \
	;  fi \
	; done \
	; test -z "$$OK"  || echo "OK : $$OK" \
	; test -z "$$BAD" || echo "BAD : $$BAD" \
	; test -z "$$BAD" # let the check fail

gdb:
	LD_LIBRARY_PATH=../pfe/.libs/ gdb ../pfe/.libs/pfe
#       ../pfe/pfe is a shell script that gdb will not quite like
# 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:
