summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 37a2f25..0a5b0ed 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,9 @@
VERSION = 0
PATCHLEVEL = 1
SUBLEVEL = 0
-EXTRAVERSION = -git
-KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+EXTRAVERSION = -rc13
+KERNELVERSION = $(shell if [ -e .git ]; then echo `scripts/setlocalversion .`; \
+ else echo $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); fi)
EMBTK_VERSION = $(KERNELVERSION)
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION EMBTK_VERSION