about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-06 21:37:11 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-06 21:37:11 -0800
commitb76207875532b67340141b0ae51cde27d601a974 (patch)
tree4dfbe8f3a030b851ffbb8134fa3b9c829c24daf4 /GNUmakefile
parent09b4cd864544a5ddb3a26eb758cf1a318dfd484c (diff)
downloadunicorn-b76207875532b67340141b0ae51cde27d601a974.tar.gz
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index cd879c5..bd2e0a5 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -157,7 +157,9 @@ NEWS: GIT-VERSION-FILE
         mv $@+ $@
 
 SINCE = 0.94.0
-ChangeLog: LOG_VERSION = $(GIT_VERSION)
+ChangeLog: LOG_VERSION = \
+  $(shell git rev-parse -q "$(GIT_VERSION)" >/dev/null 2>&1 && \
+          echo $(GIT_VERSION) || git describe)
 ChangeLog: log_range = v$(SINCE)..$(LOG_VERSION)
 ChangeLog: GIT-VERSION-FILE
         @echo "ChangeLog from $(GIT_URL) ($(log_range))" > $@+