[PATCH v2 3/3] AX_CVS,AX_DIST_MSI: Rewritten to use AX_ADD_AM_MACRO_STATIC.

2009-03-04 Thread Allan Caffee
These changes have not been tested very well since I don't have the software setup to use either one. It's also worth mentioning that AX_DIST_MSI appears to use GNU Make syntax which will cause Automake to complain unless portability warnings are disabled. Please feel free to modify this patch an

[PATCH v2 2/3] AX_DIST_RPM (and dependent macros) Modified to use AX_ADD_AM_MACRO_STATIC.

2009-03-04 Thread Allan Caffee
The macros AX_UPLOAD, AX_INSTALL_FILES, and AX_EXTRA_DIST which are often used in conjunction with AX_DIST_RPM were also updated to use AX_ADD_AM_MACRO_STATIC. Thanks go to Ralf Wildenhues for the idea of adding local cleanup and distribution targets as prerequisites the *-local/*-hook targets. --

[PATCH v2 1/3] AX_ADD_AM_MACRO_STATIC: Added a new macro and helpers.

2009-03-04 Thread Allan Caffee
This new macro adds some text to the file aminclude_static.am when *Autoconf* is run. The current macro AX_ADD_AM_MACRO writes text to the file `aminclude.am' when _configure_ is run. Unfortunately this means that a) the existing macro append Make code rather than Automake code as the name would

[PATCH v2 0/3] Improved support for generated Make rules

2009-03-04 Thread Allan Caffee
The patch series that follows is intended to improve (hopefully replace) the existing macro AX_ADD_AM_MACRO. The purpose being to address the fact that this macro does _not_ create rules for Automake but rather writes a file to be included by Make itself. The first patch in the series includes th

Re: AX_ADD_AM_MACRO creates circular dependencies

2009-03-04 Thread Allan Caffee
On Tue, Mar 3, 2009 at 1:32 PM, Ralf Wildenhues wrote: > * Allan Caffee wrote on Tue, Mar 03, 2009 at 07:14:51PM CET: >> I just wanted to follow up on this.  I decided not to post the >> series to the list. > > Why not?  If it is larger than a couple dozen KB, then you can still use > the -patches

Re: Appending to builtin Automake variables from an included file

2009-03-04 Thread Allan Caffee
On Tue, Mar 3, 2009 at 5:46 PM, Ralf Wildenhues wrote: > For cleanup, you can add a convention that no snippet overwrite the > documented -local/-hook targets, but only add prerequisites to them. > That won't help you in all cases, but most of them. > > distclean-local: distclean-local-doxygen >

Re: library dependency

2009-03-04 Thread Ralf Wildenhues
* Peter Johansson wrote on Wed, Mar 04, 2009 at 06:19:30AM CET: > John Wohlbier wrote: >> >> Does automake allow for automatically building lib2 when make is typed >> within lib1? If so, how is it done? If not, is this an unreasonable thing to >> expect the dependencies to handle? >> > I see two