From 472cf12ef7792649d7df8562b2b0f81f004517e5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 15 Jul 2001 21:55:07 +0000 Subject: [PATCH] Report from Ralf Corsepius: * automake.in (TARGET_PATTERN): Add `+' as valid character. (SUFFIX_RULE_PATTERN): Likewise. * tests/Makefile.am (TESTS): Added cxx.test. * tests/cxx.test: New file. --- ChangeLog | 6 ++++++ automake.in | 4 ++-- tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/cxx.test | 20 ++++++++++++++++++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100755 tests/cxx.test diff --git a/ChangeLog b/ChangeLog index 6abb96a0..e39f0a28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2001-07-15 Tom Tromey + Report from Ralf Corsepius: + * automake.in (TARGET_PATTERN): Add `+' as valid character. + (SUFFIX_RULE_PATTERN): Likewise. + * tests/Makefile.am (TESTS): Added cxx.test. + * tests/cxx.test: New file. + * lib/am/tags.am (distclean-tags): Remove files for gtags. From Shigio Yamaguchi. diff --git a/automake.in b/automake.in index c0173cea..63f33920 100755 --- a/automake.in +++ b/automake.in @@ -133,13 +133,13 @@ my $libdir = "@datadir@/@PACKAGE@"; my $IGNORE_PATTERN = '^\s*##([^#\n].*)?\n'; my $WHITE_PATTERN = '^\s*$'; my $COMMENT_PATTERN = '^#'; -my $TARGET_PATTERN='[$a-zA-Z_.][-.a-zA-Z0-9_(){}/$]*'; +my $TARGET_PATTERN='[$a-zA-Z_.][-.a-zA-Z0-9_(){}/$+]*'; # A rule has three parts: a list of targets, a list of dependencies, # and optionally actions. my $RULE_PATTERN = "^($TARGET_PATTERN(?:(?:\\\\\n|\\s)+$TARGET_PATTERN)*) *:([^=].*|)\$"; -my $SUFFIX_RULE_PATTERN = '^\.([a-zA-Z0-9]+)\.([a-zA-Z0-9]+)$'; +my $SUFFIX_RULE_PATTERN = '^\.([a-zA-Z0-9+]+)\.([a-zA-Z0-9+]+)$'; # Only recognize leading spaces, not leading tabs. If we recognize # leading tabs here then we need to make the reader smarter, because # otherwise it will think rules like `foo=bar; \' are errors. diff --git a/tests/Makefile.am b/tests/Makefile.am index 4037c87e..7e6e7b67 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -82,6 +82,7 @@ confvar.test \ confvar2.test \ copy.test \ ctarget1.test \ +cxx.test \ cxxansi.test \ cxxcpp.test \ cxxlibobj.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index d9a2f22d..003be126 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -148,6 +148,7 @@ confvar.test \ confvar2.test \ copy.test \ ctarget1.test \ +cxx.test \ cxxansi.test \ cxxcpp.test \ cxxlibobj.test \ diff --git a/tests/cxx.test b/tests/cxx.test new file mode 100755 index 00000000..7e547202 --- /dev/null +++ b/tests/cxx.test @@ -0,0 +1,20 @@ +#! /bin/sh + +# Test that `.c++' extension works. +# From Ralf Corsepius. + +. $srcdir/defs || exit 1 + +cat >> configure.in << 'END' +AC_PROG_CXX +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = hello +hello_SOURCES = hello.c++ +END + +$ACLOCAL || exit 1 +$AUTOMAKE || exit 1 + +grep '^\.SUFFIXES:.*c[+][+]' Makefile.in -- 2.43.5