automake
[Top][All Lists]
Advanced

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

Re: Packaging a directory tree with scripts.


From: Bob Friesenhahn
Subject: Re: Packaging a directory tree with scripts.
Date: Wed, 28 Dec 2005 12:52:29 -0600 (CST)

On Wed, 28 Dec 2005, Pat Suwalski wrote:

I would like to include the src/tools directory in the distribution, but
all of the tools are perl scripts. It seems wasteful to be making
Makefile.am's and Makefile.in's which are ten times larger than the
tools within each of the directories.

I am aware of the possibility of adding "tools/" to EXTRA_DIST in
src/Makefile.am, but maybe there is a cleaner solution that I'm missing?

I was thinking something along the lines of a hand-writted, very simple
Makefile that doesn't have any of the compiling cruft not needed. These
scripts are only to be in the source tarball, they don't get installed.

I use this in the top-level Makefile.am:

# Non-Automake subdirectories to distribute
DISTDIRS = dir1 dir2 dir3
dist-hook:
        ( \
          builddir=`pwd` ; \
          cd $(srcdir) && \
          ( \
            for dir in $(DISTDIRS) ; do \
              find $$dir -depth -print | egrep -v 
'(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
                | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
            done \
          ) \
        )

YMMV.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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