autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf/Automake is not using version from AC_INIT


From: Peter Johansson
Subject: Re: Autoconf/Automake is not using version from AC_INIT
Date: Thu, 14 Jan 2021 20:37:53 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0


On 13/1/21 12:37 pm, Bob Friesenhahn wrote:

This seems like a Catch-22 situation.  If the VERSION file timestamp does not get updated, it will produce this noise, and if does get updated, then there is a whole reconf-config-build cycle.

Is there any solution for that?

I suspect it would be possible to solve by splitting the timestamps into two different files. One is the VERSION file determining when autoconf needs to be run and a timestamp file determines when the version.sh script needs be run. Something like:

CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION

$(srcdir)/VERSION:
  rm -f timestamp && $(MAKE) $(srcdir)/timestamp

$(srcdir)/timestamp: ChangeLog
  cd $(srcdir) && $(SHELL) version.sh packageversion && :> $@

I think that works as long as the timestamp is "included" in 'make all' early by using BUILT_SOURCES, or if EXTRA_DIST suffices.

Peter





reply via email to

[Prev in Thread] Current Thread [Next in Thread]