mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
aed9b5dee4
* tests/mktests.sh: Generate `syntax.m4' directly. * tests/macros.m4: Remove. Adjust dependencies. * tests/mktests.sh: Generate `update.m4' too. * tests/update.m4: New generated file. Adjust dependencies. * tests/atspecific.m4 (AT_CHECK_UPDATE): New macro.
54 lines
1.9 KiB
Makefile
54 lines
1.9 KiB
Makefile
## Process this file with automake to create Makefile.in.
|
|
|
|
## Makefile for Autoconf testsuite.
|
|
## Copyright (C) 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 = base.m4 tools.m4 semantics.m4 torture.m4 syntax.m4 update.m4
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
|
EXTRA_DIST = atgeneral.m4 atspecific.m4 suite.m4 aclocal.m4 \
|
|
$(SUITE) mktests.sh
|
|
|
|
check-local: atconfig testsuite
|
|
$(SHELL) testsuite
|
|
|
|
testsuite: atgeneral.m4 atspecific.m4 suite.m4 $(SUITE)
|
|
$(M4) -I $(srcdir) atspecific.m4 suite.m4 | \
|
|
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
|
|
|
|
syntax.m4: mktests.sh $(MACRO_FILES)
|
|
./mktests.sh $(MACRO_FILES)
|
|
|
|
update.m4: mktests.sh $(MACRO_FILES)
|
|
./mktests.sh $(MACRO_FILES)
|
|
|
|
CLEANFILES = debug-*.sh macro configure configure.in config.status \
|
|
config.cache config.log config.h.in config.h
|
|
DISTCLEANFILES = atconfig testsuite
|