Re: Autoconf/Automake is not using version from AC_INIT

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

 




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






[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux