]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] dist: less use of transforms, prefer make variables (2)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 12:05:43 +0000 (14:05 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 11 Aug 2012 12:17:07 +0000 (14:17 +0200)
* automake.in (handle_dist): Turn the '%DIST-TARGETS%' transform
into the 'am.dist.extra-targets' internal variable.
* lib/am/distdir.am (distdir): Adjust and simplify accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in
lib/am/distdir.am

index 177b43f277223c0d2be35b0a5e5c1e328ce6446b..ed4d14af2cde0e004021e96f9543238e47a88dcf 100644 (file)
@@ -3301,7 +3301,7 @@ sub handle_dist ()
   # before it is packaged up.
   push (@dist_targets, 'dist-hook')
     if user_phony_rule 'dist-hook';
-  $transform{'DIST-TARGETS'} = join (' ', @dist_targets);
+  define_variable ('am.dist.extra-targets', INTERNAL, @dist_targets);
 
   $output_rules .= &file_contents ('distdir',
                                   new Automake::Location,
index cf1333b02b1b0c0e0e486c76e98c37671efefbb9..7533e3dc77fee6bbceb12251ac9ae44900a9f59e 100644 (file)
@@ -260,11 +260,10 @@ endif %?SUBDIRS%
 ## info files.
 ## We must explicitly set distdir and top_distdir for these sub-makes.
 ##
-if %?DIST-TARGETS%
+       $(if $(am.dist.extra-targets), \
        $(MAKE) \
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
-         %DIST-TARGETS%
-endif %?DIST-TARGETS%
+         $(am.dist.extra-targets))
 ##
 ## This complex find command will try to avoid changing the modes of
 ## links into the source tree, in case they're hard-linked.