aboutsummaryrefslogtreecommitdiff
path: root/Makefile.gen
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.gen')
-rw-r--r--Makefile.gen4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.gen b/Makefile.gen
index 00cac13..b223643 100644
--- a/Makefile.gen
+++ b/Makefile.gen
@@ -21,9 +21,13 @@ ifdef DRIVER
RELEASE=$(shell cat ../VERSION)
export DRIVER_NAME=$(shell cat ../VERSION | sed -e "s/-/./g" | awk -F . '{ printf("%s%02d%02d%1s%02s",$$1,$$2,$$3,$$4,$$5); }')
else
+ifneq (,$(wildcard ../.git))
+RELEASE=git-$(shell git rev-parse --short=16 HEAD)
+else
RELEASE="$(USER)@$(HOSTNAME)(private build)"
export DRIVER_NAME=HEAD
endif
+endif
DRVDATE=$(shell date +%Y-%h%d)