mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-15 02:20:10 +08:00
01bbecaa0a
the AC_CONFIG_COMMANDS invocation. This also solves the name clash problems. Don't set the package's ID. * lib/m4sugar/Makefile.am (version.m4): Revamp. No longer to be shipped. (version.in): Remove. * lib/m4sugar/m4sugar.m4, lib/autoconf/general.m4, * lib/autoconf/status.m4: Adjust. Use `m4_PACKAGE_STRING'. * lib/autotest/general.m4 (AT_INIT): N-th signature change: now the only optional argument is the name of the test suite. Expect `package.m4' to define the package signature. * lib/autom4te.in (Autotest): Add `package.m4?'. * tests/Makefile.am (package.m4): New. * tests/suite.at: ifnames is a victim.
152 lines
4.7 KiB
Makefile
152 lines
4.7 KiB
Makefile
## Process this file with automake to create Makefile.in. -*-Makefile-*-
|
|
|
|
## Makefile for Autoconf testsuite.
|
|
## Copyright 2000, 2001 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.
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
|
EXTRA_DIST = $(WRAPPERS) $(TESTSUITE_AT) atspecific.m4 aclocal.m4 mktests.sh \
|
|
atlocal.in
|
|
|
|
# Running the uninstalled scripts.
|
|
WRAPPERS = autoconf autoheader autoreconf autom4te autoupdate ifnames
|
|
|
|
DISTCLEANFILES = atconfig atlocal package.m4 $(TESTSUITE)
|
|
|
|
TESTSUITE_GENERATED_AT = \
|
|
aclang.at acc.at acfortran.at \
|
|
acgeneral.at acstatus.at \
|
|
acautoheader.at acautoupdate.at \
|
|
acspecific.at acfunctions.at acheaders.at actypes.at \
|
|
aclibs.at acprograms.at
|
|
|
|
TESTSUITE_HAND_AT = \
|
|
suite.at \
|
|
m4sugar.at m4sh.at \
|
|
base.at tools.at torture.at \
|
|
compile.at \
|
|
semantics.at \
|
|
foreign.at
|
|
|
|
TESTSUITE_AT = $(TESTSUITE_GENERATED_AT) $(TESTSUITE_HAND_AT)
|
|
TESTSUITE = ./testsuite
|
|
|
|
# Run the non installed autom4te.
|
|
AUTOM4TE = $(srcdir)/autom4te
|
|
AUTOTEST = $(AUTOM4TE) --language=autotest
|
|
testsuite: $(top_srcdir)/lib/m4sugar/m4sugar.m4 \
|
|
$(top_srcdir)/lib/m4sugar/m4sh.m4 \
|
|
$(top_srcdir)/lib/autotest/autotest.m4 \
|
|
$(top_srcdir)/lib/autotest/general.m4 \
|
|
package.m4 \
|
|
atspecific.m4 \
|
|
$(TESTSUITE_AT)
|
|
$(AUTOTEST) -I $(srcdir) suite.at -o $@.tmp
|
|
mv $@.tmp $@
|
|
|
|
atconfig: $(top_builddir)/config.status
|
|
cd $(top_builddir) && ./config.status tests/$@
|
|
|
|
atlocal: $(srcdir)/atlocal.in $(top_builddir)/config.status
|
|
cd $(top_builddir) && ./config.status tests/$@
|
|
|
|
clean-local:
|
|
$(SHELL) $(TESTSUITE) --clean
|
|
rm -rf autom4te.cache
|
|
|
|
check-local: atconfig atlocal $(TESTSUITE)
|
|
$(SHELL) $(TESTSUITE)
|
|
|
|
# Run the test suite on the *installed* tree.
|
|
installcheck-local:
|
|
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
|
|
|
|
|
|
|
|
## ------------ ##
|
|
## package.m4. ##
|
|
## ------------ ##
|
|
|
|
package.m4: $(top_srcdir)/configure.ac
|
|
{ \
|
|
echo '# Signature of the current package.'; \
|
|
echo 'm4_define([PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
|
echo 'm4_define([PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
|
echo 'm4_define([PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
|
echo 'm4_define([PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
|
echo 'm4_define([PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
|
} >package.m4
|
|
|
|
|
|
|
|
|
|
## ------------------ ##
|
|
## Maintainer rules. ##
|
|
## ------------------ ##
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE_GENERATED_AT)
|
|
|
|
## Producing the test files.
|
|
|
|
# The files which contains macro we check for syntax. Don't use $(top_srcdir)
|
|
# here since below we explicitly `cd' to $srcdir. As for the dependencies,
|
|
# thanks God for VPATH. Hm...
|
|
autoconfdir = $(top_srcdir)/lib/autoconf
|
|
AUTOCONF_FILES = $(autoconfdir)/general.m4 \
|
|
$(autoconfdir)/status.m4 \
|
|
$(autoconfdir)/autoheader.m4 \
|
|
$(autoconfdir)/autoupdate.m4 \
|
|
$(autoconfdir)/specific.m4 \
|
|
$(autoconfdir)/functions.m4 \
|
|
$(autoconfdir)/lang.m4 \
|
|
$(autoconfdir)/c.m4 \
|
|
$(autoconfdir)/fortran.m4 \
|
|
$(autoconfdir)/headers.m4 \
|
|
$(autoconfdir)/libs.m4 \
|
|
$(autoconfdir)/types.m4 \
|
|
$(autoconfdir)/programs.m4
|
|
|
|
$(TESTSUITE_GENERATED_AT): mktests.sh $(AUTOCONF_FILES)
|
|
cd $(srcdir) && ./mktests.sh $(AUTOCONF_FILES)
|
|
|
|
|
|
## maintainer-check ##
|
|
|
|
maintainer-check: maintainer-check-posix maintainer-check-c++
|
|
|
|
# The hairy heredoc is more robust than using echo.
|
|
CLEANFILES = expr
|
|
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
|