Hi Peter, I suspected that it could or must be done by way of configure.ac and additional m4 macros. That's not a problem at all. I was just wondering if there was anything "native" to Automake for this. In any case, this should work just fine. Thanks!
Cheers, David On Fri, Aug 22, 2014 at 10:10 PM, Peter Johansson <troj...@gmail.com> wrote: > > On 22/08/14 10:55, David Ventimiglia wrote: > >> Hi, >> >> Does Automake provide any kind of extension mechanism so that one can >> produce, and possibly share, useful Makefile fragments? >> >> >> Hi David, > > What I've chosen to do is to write autoconf macros that generate these > Automake fragments, so all I need to do as user is to call the macro in ' > configure.ac' and include the fragment file in my 'Makefile.am'. The real > benefit of that is when the macro has been modified and aclocal will take > care of updating the macro in each project and the automake fragments are > re-generated. An example of this idea you can see in macro YAT_SVN_REVISION > found here http://dev.thep.lu.se/yat/svn/trunk/m4/yat_am_macros.m4 > > Cheers, > Peter >