From e58921e546e68366f2b294a01ab1afa262ab8b95 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 10 Mar 2016 12:32:29 +0100 Subject: Makefile: ifndef HOSTNAME, def it --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 226c0f297..bd4544000 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ stockholm ?= . +export HOSTNAME ?= $(shell cat /proc/sys/kernel/hostname) + export STOCKHOLM_VERSION ?= $(shell \ version=git.$$(git describe --always --dirty); \ - case $$version in (*-dirty) version=$$version@$$(hostname); esac; \ + case $$version in (*-dirty) version=$$version@$$HOSTNAME; esac; \ date=$$(date +%y.%m); \ printf '%s' "$$date.$$version"; \ ) -- cgit v1.2.3