diff options
author | tv <tv@krebsco.de> | 2016-03-10 12:32:29 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-03-10 12:35:41 +0100 |
commit | 37ff2437476bf8752643f3735ed3f2b19dbddb40 (patch) | |
tree | 47e34cbd08ad8ca3d5ad183f106054c0e5de8a4f | |
parent | 20ad35c90045b51bc2e83587d0650a33467ea896 (diff) |
Makefile: ifndef HOSTNAME, def it
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"; \ ) |