[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to extend automake?
From: |
Tom Howard |
Subject: |
Re: How to extend automake? |
Date: |
Tue, 07 Jun 2005 10:40:34 +1000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Bruno,
> How can I extend automake (other than submitting a patch and waiting for
> automake-1.10 to be released)?
[...snip...]
> What I want to do is to ship with bison (and similarly, other programs) an
> autoconf macro and an automake extension, so that all packages which use
> bison and a Makefile.am could use the extension by adding a single line to
> their Makefile.am.
The best way I've found to do this sort of think, is to create an
autoconf macro that generates a Makefile fragment and use AC_SUBST_FILE
on that. I'm (still) in the process of updating a few things but you can
see what I'm doing at
http://cvs.sourceforge.net/viewcvs.py/sserver/m4/
and more specifically
http://cvs.sourceforge.net/viewcvs.py/*checkout*/sserver/m4/ax_add_mk_macro.m4
I used ax_add_mk_macro in ax_dist_rpm.m4 so that in my projects I can run
make dist-rpm
to create an rpm distribution. Using these macros, all I have to add to
the Makefile.am is @INCLUDE_MK@ at the end.
HTH.
Cheers,
- --
Tom Howard
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x433B299A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCpO0Bw1G4ZUM7KZoRAjD6AKC6WJD+WOlizibi2Z8f6TjSJtIuxACeIVbO
weOI+tR+3fpvvW5ArNyUSvY=
=FqTN
-----END PGP SIGNATURE-----
tomhoward.vcf
Description: Vcard
- Re: How to extend automake?,
Tom Howard <=