* 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>
# 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,
## 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.