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