+Wed Apr 30 19:15:47 1997 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_yacc_lex_cxx): Include CXXFLAGS in CXXLINK.
+ (handle_yacc_lex_cxx): Include CFLAGS in LINK.
+
Wed Apr 30 14:46:37 1997 Ian Lance Taylor <ian@cygnus.com>
+ * automake.in (handle_dist_worker): When building a distribution,
+ if SUBDIRS is defined conditionaly, recur into each possible
+ subdirectory.
+
* clean.am (distclean-generic): Remove stamp-h[0-9]*.
Tue Apr 29 19:11:45 1997 Tom Tromey <tromey@cygnus.com>
$ltcompile . '$(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS)')
if ($seen_libtool);
- &define_variable ('CXXLINK', $ltlink . '$(CXX) $(LDFLAGS) -o $@');
+ &define_variable ('CXXLINK', $ltlink . '$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@');
local ($ext);
foreach $ext (@cxx_list)
$ltcompile .
'$(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)')
if ($seen_libtool);
- &define_variable ('LINK', $ltlink . '$(CC) $(LDFLAGS) -o $@');
+ &define_variable ('LINK', $ltlink . '$(CC) $(CFLAGS) $(LDFLAGS) -o $@');
if (! defined $configure_vars{'CC'})
{
# recursive build.
if (&variable_defined ('SUBDIRS'))
{
+ # If SUBDIRS is conditionally defined, then set DIST_SUBDIRS
+ # to all possible directories, and use it.
+ if (! &variable_conditions ('SUBDIRS'))
+ {
+ $dist_subdir_name = 'SUBDIRS';
+ }
+ else
+ {
+ $dist_subdir_name = 'DIST_SUBDIRS';
+ if (! &variable_defined ('DIST_SUBDIRS'))
+ {
+ &define_pretty_variable ('DIST_SUBDIRS', '',
+ &variable_value_as_list ('SUBDIRS',
+ 'all'));
+ }
+ }
+
# Test for directory existence here because previous automake
# invocation might have created some directories. Note that
# we explicitly set distdir for the subdir make; that lets us
# mix-n-match many automake-using packages into one large
# package, and have "dist" at the top level do the right
# thing.
- $output_rules .= ' for subdir in $(SUBDIRS); do \\
+ $output_rules .= ' for subdir in $(' . $dist_subdir_name . '); do \\
test -d $(distdir)/$$subdir \\
|| mkdir $(distdir)/$$subdir \\
|| exit 1; \\
}
}
-# Like define_variable, but second arg is a list, and is
-# pretty-printed. The third argument is the conditional under which
-# the value should be defined.
+# Like define_variable, but the value is a list, and the variable may
+# be defined conditionally. The second argument is the conditional
+# under which the value should be defined; this should be the empty
+# string to define the variable unconditionally. The third argument
+# is a list holding the values to use for the variable. The value is
+# pretty printed in the output file.
sub define_pretty_variable
{
local ($var, $cond, @value) = @_;
@syncodeindex cv cp
@syncodeindex op cp
@syncodeindex tr cp
+@syncodeindex vr cp
@ifinfo
@node Top, Introduction, (dir), (dir)
cause @code{make dist} runtime failures.
@vindex EXTRA_DIST
+If you define @code{SUBDIRS}, automake will recursively include the
+subdirectories in the distribution. If @code{SUBDIRS} is defined
+conditionally (@pxref{Conditionals}), automake will normally include all
+directories that could possibly appear in @code{SUBDIRS} in the
+distribution. If you need to specify the set of directories
+conditionally, you can set the variable @code{DIST_SUBDIRS} to the exact
+list of subdirectories to include in the distribution.
+@vindex DIST_SUBDIRS
+
Occasionally it is useful to be able to change the distribution before
it is packaged up. If the @code{dist-hook} target exists, it is run
after the distribution directory is filled, but before the actual tar