Bob Friesenhahn wrote: > Here is an example of a working dist-hook target which is insensitive > to the number of files:
> # Non-Automake subdirectories to distribute > DISTDIRS = locale scripts www PerlMagick TclMagick > dist-hook: > ( \ > builddir=`pwd` ; \ > cd $(srcdir) && \ > ( \ > for dir in $(DISTDIRS) ; do \ > find $$dir -depth -print | egrep -v > '(~$$)|(/\.hg)|(/\.#)|(/\.deps)|(\.pyc)' \ > | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \ > done \ > ) \ > ) Thanks. It feels a bit like fighting Automake, and I do not want it to fight back; I need more courage to shoulder this strategy. So I reverted to a multi Makefile.am solution. -- Marco Maggi