From: Tom Tromey Date: Thu, 1 May 1997 01:18:15 +0000 (+0000) Subject: some patches from ian X-Git-Tag: Release-1-1p~13 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8cb8ece52fc5db3f61f2506b3a12a2572347af96;p=automake.git some patches from ian put var index into final index put CFLAGS into LINK --- diff --git a/ChangeLog b/ChangeLog index 0b21a9ec..681b1352 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ +Wed Apr 30 19:15:47 1997 Tom Tromey + + * 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 + * 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 diff --git a/automake.in b/automake.in index 03598f12..6bf90dc6 100755 --- a/automake.in +++ b/automake.in @@ -892,7 +892,7 @@ sub handle_yacc_lex_cxx $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) @@ -943,7 +943,7 @@ sub handle_yacc_lex_cxx $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'}) { @@ -2341,13 +2341,30 @@ sub handle_dist_worker # 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; \\ @@ -4753,9 +4770,12 @@ sub define_variable } } -# 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) = @_; diff --git a/automake.texi b/automake.texi index 943cb481..df6d5459 100644 --- a/automake.texi +++ b/automake.texi @@ -87,6 +87,7 @@ approved by the Free Software Foundation. @syncodeindex cv cp @syncodeindex op cp @syncodeindex tr cp +@syncodeindex vr cp @ifinfo @node Top, Introduction, (dir), (dir) @@ -2051,6 +2052,15 @@ handle files in the current directory; files in other directories will 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 diff --git a/stamp-vti b/stamp-vti index f78d41b5..b59fe226 100644 --- a/stamp-vti +++ b/stamp-vti @@ -1,3 +1,3 @@ -@set UPDATED 28 April 1997 +@set UPDATED 30 April 1997 @set EDITION 1.1p @set VERSION 1.1p diff --git a/version.texi b/version.texi index f78d41b5..b59fe226 100644 --- a/version.texi +++ b/version.texi @@ -1,3 +1,3 @@ -@set UPDATED 28 April 1997 +@set UPDATED 30 April 1997 @set EDITION 1.1p @set VERSION 1.1p