* automake.in (&handle_dist_worker): Don't.
+2001-02-21 Akim Demaille <akim@epita.fr>
+
+ * distdir.am (distdir): Handle the DIST-TARGETS.
+ * automake.in (&handle_dist_worker): Don't.
+
+
2001-02-21 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents): Transform the global options (such
|| exit 1; \
fi; \
done
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
+ dist-info
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
dist: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
- $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
info-am: $(INFO_DEPS)
info: info-recursive
dvi-am: $(DVIS)
'TOP_DISTDIR' => $top_distdir);
}
- $output_rules .=
- &file_contents ('distdir',
- $xform
- . &transform_cond ('SUBDIRS' =>
- &variable_defined ('SUBDIRS')));
-
# If the target `dist-hook' exists, make sure it is run. This
# allows users to do random weird things to the distribution
# before it is packaged up.
- push (@dist_targets, 'dist-hook') if &target_defined ('dist-hook');
+ push (@dist_targets, 'dist-hook')
+ if &target_defined ('dist-hook');
- local ($targ);
- foreach $targ (@dist_targets)
- {
- # We must explicitly set distdir and top_distdir for these
- # sub-makes.
- $output_rules .= ("\t\$(MAKE) \$(AM_MAKEFLAGS)"
- . " top_distdir=\"\$(top_distdir)\""
- . " distdir=\"\$(distdir)\" $targ\n");
- }
+ $output_rules .=
+ &file_contents ('distdir',
+ $xform
+ . &transform ('DIST-TARGETS' => join " ", @dist_targets)
+ . &transform_cond ('DIST-TARGETS' =>
+ scalar @dist_targets,
+ 'SUBDIRS' =>
+ &variable_defined ('SUBDIRS')));
}
# Handle 'dist' target.
?SUBDIRS? fi; \
?SUBDIRS? done
##
+## We might have to perform some last second updates, such as updating
+## info files.
+## We must explicitly set distdir and top_distdir for these sub-makes.
+##
+?DIST-TARGETS? $(MAKE) $(AM_MAKEFLAGS) \
+?DIST-TARGETS? top_distdir="$(top_distdir)" distdir="$(distdir)" \
+?DIST-TARGETS? @DIST-TARGETS@
+##
## This complex find command will try to avoid changing the modes of
## links into the source tree, in case they're hard-linked. It will
## also make directories writable by everybody, because some
?TOPDIR??BZIP2?.PHONY dist-all: dist-bzip2
-?TOPDIR??BZIP2?.PHONY: dist-bzip2
?TOPDIR??BZIP2?dist-bzip2: distdir
?TOPDIR??BZIP2? $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
?TOPDIR??BZIP2? -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
?SUBDIRS? fi; \
?SUBDIRS? done
##
+## We might have to perform some last second updates, such as updating
+## info files.
+## We must explicitly set distdir and top_distdir for these sub-makes.
+##
+?DIST-TARGETS? $(MAKE) $(AM_MAKEFLAGS) \
+?DIST-TARGETS? top_distdir="$(top_distdir)" distdir="$(distdir)" \
+?DIST-TARGETS? @DIST-TARGETS@
+##
## This complex find command will try to avoid changing the modes of
## links into the source tree, in case they're hard-linked. It will
## also make directories writable by everybody, because some
?TOPDIR??BZIP2?.PHONY dist-all: dist-bzip2
-?TOPDIR??BZIP2?.PHONY: dist-bzip2
?TOPDIR??BZIP2?dist-bzip2: distdir
?TOPDIR??BZIP2? $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
?TOPDIR??BZIP2? -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)