2006-05-14 Stepan Kasal * lib/am/distdir.am: Do not call $(mkdir_p) for each distributed file, only when it's needed. Index: lib/am/distdir.am =================================================================== RCS file: /cvs/automake/automake/lib/am/distdir.am,v retrieving revision 1.64 diff -u -r1.64 distdir.am --- lib/am/distdir.am 19 Mar 2006 05:04:28 -0000 1.64 +++ lib/am/distdir.am 14 May 2006 13:27:28 -0000 @@ -114,14 +114,13 @@ ## if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ ## -## Make the subdirectory for the file. This is going to make `dist' -## really crawl, but it seems like the only way to do it, given that -## files in subdirectories can be specified for `dist' conditionally. +## Make sure the subdirectory for the file exists; remember that files +## in subdirectories can be specified for `dist' conditionally. ## dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ + test -d "$(distdir)$$dir" || $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \