summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcae5a1)
raw | patch | inline | side by side (parent: dcae5a1)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 26 Sep 2007 23:28:35 +0000 (01:28 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 26 Sep 2007 23:29:18 +0000 (01:29 +0200) |
... when the version is given using DIST_VERSION!
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index cee61d8c287ee03c13170fde028639d9e7708f94..c8580bf93c8c8854bc4b16396cf1d88e2e812ee8 100644 (file)
--- a/Makefile
+++ b/Makefile
MANDOC = tig.1 tigrc.5
HTMLDOC = tig.1.html tigrc.5.html manual.html README.html
ALLDOC = $(MANDOC) $(HTMLDOC) manual.html-chunked manual.pdf
+
+# Never include the release number in the tarname for tagged
+# versions.
+ifneq ($(if $(DIST_VERSION),$(words $(RPM_VERLIST))),2)
TARNAME = tig-$(RPM_VERSION)-$(RPM_RELEASE)
+else
+TARNAME = tig-$(RPM_VERSION)
+endif
override CFLAGS += '-DTIG_VERSION="$(VERSION)"'