[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] (no subject)
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] (no subject) |
Date: |
Mon, 30 May 2016 04:33:47 +0000 (UTC) |
branch: master
commit 2e0cfea60f8bf8bf4ce916b5be14cc5493269b75
Author: Mohammad Akhlaghi <address@hidden>
Date: Mon May 30 12:43:38 2016 +0900
configure is now a prerequisite of .version
Following `git-version-gen''s suggestion, until now `.version' did not
depend on anything. So the only way to update it was to delete it and run
`make'. This manual operation could cause confusion if forgotten (for
example in unofficial releases). So now `.version' depends on the
`configure' script. Any time `configure' is rebuilt (and thus the version
is updated), the `.version' file is also updated.
---
Makefile.am | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index b673aed..02131e4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,17 +26,25 @@
## Sources to be run before everything else
## ========================================
##
-## The .version file is managed by the by the following file to
-## automatically generate the version:
+## The .version file is created from the $(VERSION) variable which was
+## defined by the git-version-gen script at:
##
## bootstrapped/build-aux/git-version-gen
##
-## we want it to be created before anything else after running `make',
-## `make check', or `make install', see the "Built sources" section of the
+## we want it to be created before anything else when running `make', `make
+## check', or `make install', see the "Built sources" section of the
## AUTOMAKE manual and the git-version-gen script comments for more
## information.
+##
+## Note that contrary to what is proposed by git-version-gen, here the
+## `.version' file's creation depends on the `configure' script, so anytime
+## a the VERSION variable is updated, `.version' is also updated. During
+## development of the main functionality of Gnuastro (utilities and
+## libraries), the `configure' script is rarely updated, so `.version' will
+## not be rebuilt and thus it won't harm the speed of testing.
BUILT_SOURCES = $(top_srcdir)/.version
-$(top_srcdir)/.version:; echo $(VERSION) > address@hidden && mv address@hidden
$@
+$(top_srcdir)/.version: $(top_srcdir)/configure
+ echo $(VERSION) > address@hidden && mv address@hidden $@
dist-hook:; echo $(VERSION) > $(distdir)/.tarball-version