1# Makefile for Autoconf test suite.
2# Copyright (C) 1994 Free Software Foundation, Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2, or (at your option)
7# any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18#### Start of system configuration section. ####
19
20top_srcdir = @top_srcdir@
21srcdir = @srcdir@
22VPATH = @srcdir@
23
24M4 = @M4@
25
26prefix = @prefix@
27exec_prefix = @exec_prefix@
28
29AUTOCONF = ../autoconf
30AUTOCONFFLAGS = -m $(top_srcdir)
31
32RUNTEST= runtest
33RUNTESTFLAGS=
34
35#### End of system configuration section. ####
36
37SHELL = /bin/sh
38
39all:
40info:
41dvi:
42
43check: site.exp all
44	@if ($(RUNTEST) --version) >/dev/null 2>&1; then \
45	echo $(RUNTEST); \
46	$(RUNTEST) $(RUNTESTFLAGS) --tool autoconf AUTOCONF=${AUTOCONF} \
47	AUTOCONFFLAGS="${AUTOCONFFLAGS}" --srcdir $(srcdir); \
48	else echo $(RUNTEST) not found, check skipped; fi
49
50installcheck:
51
52site.exp: Makefile
53	@echo "Making a new site.exp file..."
54	@test ! -f site.bak || rm -f site.bak
55	@test ! -f site.exp || mv site.exp site.bak
56	@echo "## these variables are automatically generated by make ##" > site.exp
57	@echo "# Do not edit here. If you wish to override these values" >> site.exp
58	@echo "# add them to the last section" >> site.exp
59	@echo "set tool autoconf" >> site.exp
60	@echo "set srcdir ${srcdir}" >> site.exp
61	@echo "set objdir `pwd`" >> site.exp
62	@echo "## All variables above are generated by configure. Do Not Edit ##" >> site.exp
63	@test ! -f site.bak || sed '1,/^## All variables above are.*##/ d' site.bak >> site.exp
64
65install:
66
67install-info:
68
69uninstall:
70
71Makefile: Makefile.in ../config.status
72	cd ..; ./config.status
73
74clean mostlyclean distclean maintainer-clean::
75	rm -f autoconf.log autoconf.sum site.exp site.bak AC* confdummy* 
76
77distclean maintainer-clean::
78	rm -f Makefile config.status config.cache config.log
79
80TAGS:
81