mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-15 02:20:10 +08:00
1304fbbe0b
existing tests. * tests/atspecific.m4 (AT_CONFIGURE_AC, AT_CHECK_ENV) (AT_CHECK_AUTOUPDATE, AT_CHECK_AU_MACRO): New. Spread their use. (AT_CHECK_MACRO): Pass `-W obsolete' to autoconf. * tests/semantics.at (AC_HAVE_FUNCS): Obsolete, don't check. * tests/mktest.sh: Create one test file per Autoconf source file instead of separating syntax/update.
103 lines
3.2 KiB
Makefile
103 lines
3.2 KiB
Makefile
## Process this file with automake to create Makefile.in.
|
|
|
|
## Makefile for Autoconf testsuite.
|
|
## Copyright 2000 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., 59 Temple Place - Suite 330, Boston, MA
|
|
## 02111-1307, USA.
|
|
|
|
AUTOMAKE_OPTIONS = gnits
|
|
|
|
SUITE = suite.at \
|
|
m4sugar.at m4sh.at \
|
|
base.at tools.at torture.at compile.at semantics.at \
|
|
acgeneral.at acspecific.at acfunctions.at aclang.at acheaders.at
|
|
foreign.at
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
|
EXTRA_DIST = README \
|
|
atgeneral.m4 atspecific.m4 aclocal.m4 \
|
|
$(SUITE) mktests.sh
|
|
|
|
check-local: atconfig testsuite
|
|
$(SHELL) testsuite
|
|
|
|
testsuite: $(top_srcdir)/m4sugar.m4 $(top_srcdir)/m4sh.m4 \
|
|
atgeneral.m4 atspecific.m4 \
|
|
$(SUITE)
|
|
$(M4) -I $(srcdir) -I $(top_srcdir) atspecific.m4 suite.at | \
|
|
sed -e 's/[ ]*$$//' | \
|
|
sed -e '/^$$/N;/\n$$/D' > $@-tmp
|
|
chmod +x $@-tmp
|
|
mv $@-tmp $@
|
|
|
|
|
|
# The files which contains macro we check for syntax.
|
|
MACRO_FILES = $(top_srcdir)/acgeneral.m4 \
|
|
$(top_srcdir)/acspecific.m4 \
|
|
$(top_srcdir)/acfunctions.m4 \
|
|
$(top_srcdir)/aclang.m4 \
|
|
$(top_srcdir)/acheaders.m4
|
|
|
|
acgeneral.at: mktests.sh $(MACRO_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
acspecific.at: mktests.sh $(MACRO_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
acfunctions.at: mktests.sh $(MACRO_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
aclang.at: mktests.sh $(MACRO_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
acheaders.at: mktests.sh $(MACRO_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
CLEANFILES = debug-*.sh macro configure configure.in configure.ac \
|
|
config.status config.cache config.log config.h.in config.h \
|
|
stderr stdout empty
|
|
DISTCLEANFILES = atconfig testsuite
|
|
|
|
|
|
## ------------------ ##
|
|
## Maintainer rules. ##
|
|
## ------------------ ##
|
|
|
|
## maintainer-check ##
|
|
|
|
maintainer-check: maintainer-check-posix maintainer-check-c++
|
|
|
|
# The hairy heredoc is more robust than using echo.
|
|
expr:
|
|
echo '#! $(SHELL)' >expr
|
|
echo 'result=`@EXPR@ "$$@"`' >>expr
|
|
echo 'estatus=$$?' >>expr
|
|
echo 'cat <<EOF' >>expr
|
|
echo '$${result:-0}' >>expr
|
|
echo 'EOF' >>expr
|
|
echo 'exit $$estatus' >>expr
|
|
chmod +x expr
|
|
|
|
# Try the test suite with more severe environments.
|
|
maintainer-check-posix: expr
|
|
POSIXLY_CORRECTLY=yes make check
|
|
rm expr
|
|
|
|
# Try using G++ as a C compiler.
|
|
maintainer-check-c++:
|
|
CC=g++ make check
|