summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-23 17:32:46 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-23 17:32:46 (EST)
commit6f521c12ae370485b66dcf07e3437bfa04776ebc (patch)
tree679d29ec3f36c664e400e54c9c88d90b1786a198
parent76c44efdc5fe002e39aaf27ad4cd94f2bc154bda (diff)
Makefile.am: Add comment about PACKAGE_VERSION hack
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 0ce506b..7278df2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,12 @@ PACKAGE_VERSION_GIT = $(PACKAGE_VERSION)
endif
SUFFIXES = .sh .sho .ms .1in .1 .8in .8
+
+# This PACKAGE_VERSION stuff is a rather gross hack, but it's the only reliable
+# way to put Git commit information in the prokit executable. Setting
+# PACKAGE_VERSION in configure causes it to become outdated until the next
+# configure run. Adding it to the preprocessor command line can cause multiple
+# values of it to exist in the linked executable.
LINK = printf "PACKAGE_VERSION='%s'\n" "$(PACKAGE_VERSION_GIT)" | \
'$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ config.sh -