[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to dinamically set VERSION for AC_INIT
From: |
Ralf Wildenhues |
Subject: |
Re: How to dinamically set VERSION for AC_INIT |
Date: |
Fri, 14 Dec 2007 16:05:42 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-13) |
Hello,
* Eric Blake wrote on Fri, Dec 14, 2007 at 04:04:20PM CET:
>
> AC_INIT([GNU Autoconf],
> m4_esyscmd([build-aux/git-version-gen . .version]),
> address@hidden)
[...]
> One thing to be aware of is build
> dependencies [...]
> Therefore, autoconf also has a GNUMakefile that guarantees that when
> 'make dist' is run, that the version is updated correctly, while avoiding
> recompilation due to version changes during normal development.
>
> And yes, we could probably document these tricks better in the manual.
Maybe, but the canonical (Automake-centric) answer to this is not a
GNUmakefile but CONFIGURE_DEPENDENCIES, see
<http://sources.redhat.com/automake/automake.html#Rebuilding>.
Cheers,
Ralf