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 | e58921e546e68366f2b294a01ab1afa262ab8b95 (patch) | |
tree | a18baa6cdff6e56a05c4cc7aa698f9eab585cf91 | |
parent | 198407f70fdeacaae5dac6e4ec305629a5368410 (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"; \ ) |