summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-24 14:52:12 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-24 14:52:12 +0200
commita455c92627657c8e11589a04ba7ebc1dcf248f1b (patch)
tree93532cf8597ec2b266f7687bae740713603bd067 /Makefile
parent90cc1f2632be0c45f8aa19d07e5af6e817cc791b (diff)
build: add "+" version appendix automatically during build
For each build that has no tag name (thus for all commits except releases), we add a "+" version appendix to indicate that it is further than the rc tag itself, like in the kernel. Do this during configure automatically. This is useful in case someone wants to package a relase, so that the full version name indicates that. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 76434c0..678ba2b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ endif
VERSION = 0
PATCHLEVEL = 5
SUBLEVEL = 8
-EXTRAVERSION = -rc1+
+EXTRAVERSION = -rc1
NAME = Ziggomatic
TOOLS ?= $(CONFIG_TOOLS)
@@ -102,8 +102,8 @@ ifeq ("$(origin CROSS_LD_LIBRARY_PATH)", "command line")
LDFLAGS += -L$(CROSS_LD_LIBRARY_PATH)
endif
-VERSION_STRING = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
-VERSION_LONG = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)~$(NAME)
+VERSION_STRING = "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(CONFIG_RC)"
+VERSION_LONG = "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(CONFIG_RC) ($(NAME))"
export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION
export CROSS_COMPILE