# Makefile.in generated automatically by automake 1.3 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997, 1998 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.


SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DISTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
VERSION = @VERSION@

SED=$(top_builddir)/sed/sed
#TIME=time
CMP=cmp
RM=rm -f

CLEANFILES = tmp* core *.core
DISTCLEANFILES = version.good

EXTRA_DIST = \
	Makefile.in \
	enable.good enable.inp enable.sed \
	sep.good sep.inp sep.sed \
	inclib.good inclib.inp inclib.sed \
	8bit.good 8bit.inp 8bit.sed \
	newjis.good newjis.inp  newjis.sed \
	manis.inp manis.sed \
	xabcx.good xabcx.inp xabcx.sed \
	dollar.good dollar.inp dollar.sed \
	noeol.good noeol.inp noeol.sed \
	numsub.good numsub.inp numsub.sed \
	allsub.good allsub.sed \
	subwrite.inp subwrite.sed  subwrt1.good subwrt2.good \
	head.good head.inp head.sed \
	madding.good madding.inp madding.sed \
	mac-mf.good mac-mf.inp mac-mf.sed \
	empty.good empty.inp empty.sed \
	8to7.good 8to7.sed \
	cv-vars.good cv-vars.inp cv-vars.sed \
	middle.good middle.sed \
	khadafy.inp khadafy.sed \
	spencer.inp spencer.sh \
	linecnt.good linecnt.inp linecnt.sed \
	distrib.good distrib.inp distrib.sed distrib.sh \
	writeout.inp writeout.sed wrtout1.good wrtout2.good \
	readin.good readin.in2 readin.inp readin.sed \
	dc.good dc.inp \
	help.good version.gin

CORE_BASICS = \
	enable sep inclib 8bit newjis xabcx dollar noeol \
	numsub head madding mac-mf empty
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = 
DIST_COMMON =  Makefile.am Makefile.in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP = --best
all: Makefile

.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps testsuite/Makefile

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

tags: TAGS
TAGS:


distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = testsuite

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: 
	@$(NORMAL_INSTALL)

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: 

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:


mostlyclean-generic:
	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

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

distclean-generic:
	-rm -f Makefile $(DISTCLEANFILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-generic

clean:  clean-generic mostlyclean

distclean:  distclean-generic clean
	-rm -f config.status

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

.PHONY: tags distdir info dvi installcheck install-exec install-data \
install uninstall all installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean


#We're not currently set up for testing the way automake would
#like us to be.
#TESTS = basics othersedcmds cmdlines
check: basics othersedcmds cmdlines

basics: $(CORE_BASICS) manis allsub 8to7 cv-vars middle
othersedcmds: subwrite khadafy linecnt distrib writeout readin dc
cmdlines: help version file quiet

#NOTE: the "spencer" test suite is no longer run by default, because
# it: a) tests EREs instead of BREs; and b) tests using EREs with
# undefined semantics.  One can still explicitly "make spencer" if
# desired, but its use is depreciated.  A replacement BRE tester
# will written for a later revision of sed.

$(CORE_BASICS) linecnt::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/$@.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

manis khadafy::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/$@.inp > tmp.$@
	$(CMP) $(srcdir)/$@.inp tmp.$@
	@$(RM) tmp.$@

allsub::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/numsub.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

8to7::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/8bit.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

cv-vars::
	$(TIME) $(SED) -n -f $(srcdir)/$@.sed < $(srcdir)/$@.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

middle::
	$(TIME) $(SED) -n -f $(srcdir)/$@.sed < $(srcdir)/head.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

subwrite::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/$@.inp > tmp.1$@
	$(CMP) $(srcdir)/subwrt1.good tmp.1$@
	$(CMP) $(srcdir)/subwrt2.good tmp.subwrite-w
	@$(RM) tmp.1$@ tmp.subwrite-w

spencer::
	sh $(srcdir)/$@.sh $(SED) <  $(srcdir)/$@.inp > tmp.$@
	$(TIME) sh tmp.$@
	@$(RM) tmp.$@

distrib::
	$(TIME) sh $(srcdir)/$@.sh $(SED) < $(srcdir)/$@.inp > tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

writeout::
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/$@.inp >tmp.1$@
	$(CMP) $(srcdir)/wrtout1.good tmp.1$@
	$(CMP) $(srcdir)/wrtout2.good tmp.writeout-w
	@$(RM) tmp.1$@ tmp.writeout-w

readin::
	@test -f $@.in2 || cp $(srcdir)/$@.in2 $@.in2
	$(TIME) $(SED) -f $(srcdir)/$@.sed < $(srcdir)/$@.inp >tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

dc::
	@echo "Patience, the dc.sed test is expected to take a while..."
	$(TIME) $(SED) -n -f $(top_srcdir)/dc.sed < $(srcdir)/$@.inp >tmp.$@
	$(CMP) $(srcdir)/$@.good tmp.$@
	@$(RM) tmp.$@

#
# cmdlines targets
#

help::
	$(SED) --help | $(SED) '1s/ [^ ]* / sed /' > tmp.1$@
	$(SED) -h | $(SED) '1s/ [^ ]* / sed /' > tmp.2$@
	-$(SED) 2>&1 | $(SED) '1s/ [^ ]* / sed /' > tmp.3$@ || true
	$(CMP) $(srcdir)/$@.good tmp.1$@
	$(CMP) tmp.1$@ tmp.2$@
	$(CMP) tmp.2$@ tmp.3$@
	@$(RM) tmp.1$@ tmp.2$@ tmp.3$@

version:: version.good
	$(SED) --version  > tmp.1$@ 2>&1
	$(SED) -V > tmp.2$@ 2>&1
	$(CMP) $@.good tmp.1$@
	$(CMP) $@.good tmp.2$@
	@$(RM) tmp.1$@ tmp.2$@

file::
	$(TIME) $(SED) --file=$(srcdir)/newjis.sed < $(srcdir)/newjis.inp > tmp.$@
	$(CMP) $(srcdir)/newjis.good tmp.$@
	@$(RM) tmp.$@

quiet::
	$(TIME) $(SED) --quiet -f $(srcdir)/cv-vars.sed \
		< $(srcdir)/cv-vars.inp > tmp.$@
	$(CMP) $(srcdir)/cv-vars.good tmp.$@
	@$(RM) tmp.$@

# automake won't cooperate with me and let me AC_OUTPUT() this,
# so I need to special-case this:
version.good: $(srcdir)/version.gin Makefile
	$(SED) 's^@'VERSION'@^@VERSION@^' $(srcdir)/version.gin > tmp-$@
	mv tmp-$@ $@

# 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:
