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
# 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
# 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.
## 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" \