]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
authorAlexandre Duret-Lutz <adl@gnu.org>
Sat, 17 Jul 2004 10:52:19 +0000 (10:52 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sat, 17 Jul 2004 10:52:19 +0000 (10:52 +0000)
that it is always defined.  This is less confusing for users
reading the generated Makefiles.
* automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.

ChangeLog
automake.in
lib/am/distdir.am

index 4cc0f3a388f167b97fc631ff5f6221ddb8734da0..5771b5d674b8466b718d91db880f00e49e91299e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-07-17  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
+       that it is always defined.  This is less confusing for users
+       reading the generated Makefiles.
+       * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
+
        * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
        ?!GENERIC?%DEST_PREFIX%.html): Output .htp, and then rename to .html
        on success.  In case the target is a directory, this ensures its
index 186af6e658b6cd61b9190db7127017fd844fc04b..95bc7a38ae4da1c05225ac6bf6022d39bc1126a3 100755 (executable)
@@ -3416,7 +3416,7 @@ sub handle_dist ()
       # If SUBDIRS is conditionally defined, then set DIST_SUBDIRS
       # to all possible directories, and use it.  If DIST_SUBDIRS is
       # defined, just use it.
-      my $dist_subdir_name;
+
       # Note that we check DIST_SUBDIRS first on purpose, so that
       # we don't call has_conditional_contents for now reason.
       # (In the past one project used so many conditional subdirectories
@@ -3426,25 +3426,20 @@ sub handle_dist ()
       # but it's more efficient to avoid the call anyway.)
       if (var ('DIST_SUBDIRS'))
        {
-         $dist_subdir_name = 'DIST_SUBDIRS';
        }
       elsif ($subdirs->has_conditional_contents)
        {
-         $dist_subdir_name = 'DIST_SUBDIRS';
          define_pretty_variable
            ('DIST_SUBDIRS', TRUE, INTERNAL,
             uniq ($subdirs->value_as_list_recursive));
        }
       else
        {
-         $dist_subdir_name = 'SUBDIRS';
          # We always define this because that is what `distclean'
          # wants.
          define_pretty_variable ('DIST_SUBDIRS', TRUE, INTERNAL,
                                  '$(SUBDIRS)');
        }
-
-      $transform{'DIST_SUBDIR_NAME'} = $dist_subdir_name;
     }
 
   # The remaining definitions are only required when a dist target is used.
index bde95cfb6dafb63d147597865aca49bad49f9b40..d58a7b7101ad1343e749ca30f82143b009d92f10 100644 (file)
@@ -164,7 +164,7 @@ endif %?TOPDIR_P%
 ## us work correctly with an enclosing package.
 ##
 if %?SUBDIRS%
-       list='$(%DIST_SUBDIR_NAME%)'; for subdir in $$list; do \
+       list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
          if test "$$subdir" = .; then :; else \
            test -d "$(distdir)/$$subdir" \
            || $(mkdir_p) "$(distdir)/$$subdir" \