diff mbox

[1/2] Makefile: fix missing dash when using make LOCALVERSION=xxx

Message ID 20100628030507.5187.95903.sendpatchset@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Amerigo Wang June 28, 2010, 3 a.m. UTC
None
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 662e820..710f91c 100644
--- a/Makefile
+++ b/Makefile
@@ -950,7 +950,11 @@  else
 	endif
 endif
 
-localver-full = $(localver)$(LOCALVERSION)$(localver-extra)
+ifneq ($(LOCALVERSION),)
+	localver-full = $(localver)-$(LOCALVERSION)$(localver-extra)
+else
+	localver-full = $(localver)$(LOCALVERSION)$(localver-extra)
+endif
 
 # Store (new) KERNELRELASE string in include/config/kernel.release
 kernelrelease = $(KERNELVERSION)$(localver-full)