[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BUILT_SOURCES called on `make dist` even if the built sources should
From: |
Bob Friesenhahn |
Subject: |
Re: BUILT_SOURCES called on `make dist` even if the built sources should not be included in the dist |
Date: |
Wed, 18 Sep 2019 08:22:53 -0500 (CDT) |
User-agent: |
Alpine 2.20 (GSO 67 2015-01-07) |
On Wed, 18 Sep 2019, Jerry Lundström wrote:
With v1.16 this step is executed during `make dist` and using
`EXTRA_DIST` for that whole directory would also mean that _the built
library_ would be included in the dist.
`EXTRA_DIST` only goes so far. In my own project I use `dist-hook` to
bundle up foreign subdirectories which I am too lazy to fully
describe or which are too fluid to bake into Makefile.am. For
example:
# 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 \
) \
)
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt