# Makefile for GNU m4 checks directory.
# Copyright (C) 1992, 1993 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 2, 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.

SHELL = /bin/sh

srcdir = @srcdir@
VPATH = @srcdir@

# Should be GNU awk, for the get-them script.
AWK = @AWK@

CHECKS = [0-9][0-9].*
DISTFILES = Makefile.in get-them check-them $(CHECKS) .all-stamp incl.m4 foo

all: .all-stamp

.all-stamp: get-them ../m4.texinfo
	cd $(srcdir); rm -f $(CHECKS); \
		AWK=$(AWK) $(SHELL) get-them ../m4.texinfo
	touch $(srcdir)/.all-stamp

install:

uninstall:

check: check-them .all-stamp
	cd $(srcdir); $(SHELL) check-them $(CHECKS)

tags:

clean:

distclean: clean
	rm -f Makefile

realclean: distclean
	rm -f $(CHECKS) .all-stamp

dist: $(DISTFILES)
	mkdir ../`cat ../.fname`/checks
	chmod 777 ../`cat ../.fname`/checks
	ln $(DISTFILES) ../`cat ../.fname`/checks

Makefile: Makefile.in
	cd ..; ./config.status
