version.h rebuild change in stable

Vincent Lefevre vincent at
Fri May 31 21:19:27 UTC 2019

On 2019-05-31 09:37:02 -0700, Kevin J. McCarthy wrote:
> Of course, if anyone has an idea how to do this in a way that works
> portably, we can revisit.  But for now I consider their build issues more
> important than the minor convenience for developers.

How about using AM_CONDITIONAL in, setting a variable
GNU_MAKE when GNU Make is used (based on "make --version" output)?

Then, in, have


version.h: FORCE
	echo '#define MUTT_VERSION "'`sh "$(srcdir)/"`'"' > $@.tmp
	cmp -s $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@


version.h: $(srcdir)/
	echo '#define MUTT_VERSION "'`sh "$(srcdir)/"`'"' > version.h


Vincent Lefèvre <vincent at> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

More information about the Mutt-dev mailing list