David A. Wheeler
2013-04-16 00:33:56 UTC
I'm creating a new project and using autotools. I've done this
before, but for some reason this time I've noticed how many files
autotools creates. It totally pollutes the top level of my project.
before, but for some reason this time I've noticed how many files
autotools creates. It totally pollutes the top level of my project.
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
And this in Makefile.am (presuming you use automake):
ACLOCAL_AMFLAGS = -I m4 --install
In some versions of the autotools, "autoreconf -i" won't work as-is. In my setup, to work around:
touch m4/NOTES
git add m4/NOTES
Then add to Makefile.am (to force redistribution):
EXTRA_DIST = m4/NOTES
A little explanation on *why* here:
http://www.dwheeler.com/autotools/
Sorry if this was obvious and you've already done that.
--- David A. Wheeler