+Thu Feb 12 19:45:16 1998 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_single_transform_list): Don't set
+ seen_any_source if all sources are C++.
+
Wed Feb 11 17:30:01 1998 Tom Tromey <tromey@cygnus.com>
* aclocal.in (write_aclocal): Write to $output_file, not
# Strip any directory prefix.
$_ = &basename ($_);
+ local ($is_cxx) = 0;
# Transform source files into .o files. List of C++
# extensions comes from Emacs 19.34 etags.
if (s/\.(c\+\+|cc|cpp|cxx|C)$/$nonansi_obj/)
{
$cxx_extensions{'.' . $1} = 1;
$linker = 'CXXLINK';
+ $is_cxx = 1;
}
elsif (s/\.(yy|y\+\+|yxx|ll|l\+\+|lxx)$/$nonansi_obj/)
{
next;
}
- $seen_any_source = 1;
+ $seen_any_source = 1 unless $is_cxx;
push (@result, $_);
# Transform .o or $o file into .P file (for automatic
MKDEP = $(CC) -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
## We must create the .deps directory if it doesn't exist. We do it
-## in this strange way a buglet in make -- it won't try to create
-## .deps/.P if the .deps directory doesn't exist.
+## in this strange way because of a buglet in make -- it won't try to
+## create .deps/.P if the .deps directory doesn't exist.
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
## We use ".P" as the name of our placeholder because it can't be
## duplicated by any C source file. (Well, there could be ".c", but
MKDEP = $(CC) -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
## We must create the .deps directory if it doesn't exist. We do it
-## in this strange way a buglet in make -- it won't try to create
-## .deps/.P if the .deps directory doesn't exist.
+## in this strange way because of a buglet in make -- it won't try to
+## create .deps/.P if the .deps directory doesn't exist.
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
## We use ".P" as the name of our placeholder because it can't be
## duplicated by any C source file. (Well, there could be ".c", but