1 ## Process this file with automake to create Makefile.in. -*-Makefile-*-
3 ## Makefile for Autoconf testsuite.
4 ## Copyright 2000, 2001 Free Software Foundation, Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 AUTOMAKE_OPTIONS = gnits
25 base.at tools.at torture.at compile.at semantics.at \
26 acgeneral.at acspecific.at acfunctions.at aclang.at acheaders.at \
30 # We don't actually distribute the testsuite, since one only
31 # needs m4 to build it, m4 being required anyway to install Autoconf.
33 atgeneral.m4 atspecific.m4 aclocal.m4 \
36 check-local: atconfig testsuite
39 testsuite: $(top_srcdir)/m4sugar.m4 $(top_srcdir)/m4sh.m4 \
40 atgeneral.m4 atspecific.m4 \
42 $(M4) -I $(srcdir) -I $(top_srcdir) atspecific.m4 suite.at | \
43 sed -e 's/[ ]*$$//' | \
44 sed -e '/^$$/N;/\n$$/D' >$@.tmp
49 # The files which contains macro we check for syntax. Don't use $(top_srcdir)
50 # here since below we explicitly `cd' to $srcdir. As for the dependencies,
51 # thanks God for VPATH. Hm...
52 MACRO_FILES = ../acgeneral.m4 \
59 acgeneral.at: mktests.sh $(MACRO_FILES)
60 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
62 acspecific.at: mktests.sh $(MACRO_FILES)
63 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
65 acfunctions.at: mktests.sh $(MACRO_FILES)
66 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
68 aclang.at: mktests.sh $(MACRO_FILES)
69 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
71 acheaders.at: mktests.sh $(MACRO_FILES)
72 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
74 actypes.at: mktests.sh $(MACRO_FILES)
75 cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
77 CLEANFILES = debug-*.sh macro configure configure.in configure.ac \
78 config.status config.cache config.log config.h.in config.h \
79 config.hin state-* at-* \
81 config.guess config.sub expr libtool ltconfig ltmain.sh install-sh
82 DISTCLEANFILES = atconfig testsuite
85 ## ------------------ ##
86 ## Maintainer rules. ##
87 ## ------------------ ##
89 ## maintainer-check ##
91 maintainer-check: maintainer-check-posix maintainer-check-c++
93 # The hairy heredoc is more robust than using echo.
95 echo '#! $(SHELL)' >expr
96 echo 'result=`@EXPR@ "$$@"`' >>expr
97 echo 'estatus=$$?' >>expr
98 echo 'cat <<EOF' >>expr
99 echo '$${result:-0}' >>expr
101 echo 'exit $$estatus' >>expr
104 # Try the test suite with more severe environments.
105 maintainer-check-posix: expr
106 POSIXLY_CORRECTLY=yes make check
109 # Try using G++ as a C compiler.
110 maintainer-check-c++: