Here is a patch to only add dirs to the list if they exist. It's helpfull if you build packages outside of the source tree.
As an example, in libtool's branch-1-5 when you do a make distclean you see ...... tim 133% gmake distclean Making distclean in f77demo /bin/ksh: f77demo: not found gmake: *** [distclean-recursive] Error 1 ...... With the attached patch, the problem goes away. -- Tim Rice Multitalents (707) 887-1469 [EMAIL PROTECTED]
--- automake-1.9.6/lib/am/subdirs.am.old 2005-05-14 13:21:06.000000000 -0700 +++ automake-1.9.6/lib/am/subdirs.am 2005-10-27 21:04:01.460314004 -0700 @@ -93,7 +93,7 @@ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ + test -d "$$subdir" && rev="$$subdir $$rev"; \ fi; \ done; \ ## Always do `.' last.
