summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 22:40:23 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 22:40:23 (EDT)
commit67679cfb5b18b3b4c15aeec3df22d04a5eed908a (patch)
treee49d1ae126d6f5b7c48f6b01e6ef6e9069aa7262
parent0e2bff314aa5382cd09c5d2c256629302cda3410 (diff)
Makefile.am: Override PACKAGE_STRING with git-describe output
This makes the test suite output and log a little more informative.
-rw-r--r--Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 744f436..b9429ce 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,16 @@ else
PACKAGE_VERSION_GIT = $(PACKAGE_VERSION)
endif
+# PACKAGE_STRING is used in the test suite output and log.
+# PACKAGE_VERSION can't be overridden. Automake ignores it in the IN_GIT
+# conditional (and throws a warning), and setting it to $(PACKAGE_VERSION_GIT)
+# outside the conditional causes PACKAGE_VERSION_GIT to reference itself.
+# VERSION is not set here because it is used by:
+# * Automake's distdir macro
+# * Automake's distdir target (which checks for $(VERSION) in NEWS)
+# * Our release target
+PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION_GIT)
+
MANUAL = ProteanOS Archive Manager Manual
TEXTDOMAIN = $$(printf '%s\n' '$(PACKAGE)' | sed -e 's|-|_|g')