automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argument list too long in project with many files


From: Marco Maggi
Subject: Re: argument list too long in project with many files
Date: Sat, 31 May 2014 07:53:18 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]