## We first create variables for the current git version and
## the locations of the version.h and version.h.tmpl files.
##
## We first create variables for the current git version and
## the locations of the version.h and version.h.tmpl files.
##
@(version_h_tmpl="$(top_srcdir)/include/version.h.tmpl"; \
if [ -f "$${version_h_tmpl}" ]; then \
version_h="$(top_builddir)/include/version.h"; \
@(version_h_tmpl="$(top_srcdir)/include/version.h.tmpl"; \
if [ -f "$${version_h_tmpl}" ]; then \
version_h="$(top_builddir)/include/version.h"; \
##
## We verify that git_version isn't the same as the one
## currently in the file (if there is one), as we don't
## want to update the file if it is already up to date.
##
version_match='^#define GIT_VERSION.*'; \
##
## We verify that git_version isn't the same as the one
## currently in the file (if there is one), as we don't
## want to update the file if it is already up to date.
##
version_match='^#define GIT_VERSION.*'; \
new_version="#define GIT_VERSION \"$${git_version}\""; \
if [ x"$${old_version}" != x"$${new_version}" ]; then \
new_version="#define GIT_VERSION \"$${git_version}\""; \
if [ x"$${old_version}" != x"$${new_version}" ]; then \