Makefile: ifndef HOSTNAME, def it
This commit is contained in:
parent
198407f70f
commit
e58921e546
4
Makefile
4
Makefile
|
@ -1,8 +1,10 @@
|
||||||
stockholm ?= .
|
stockholm ?= .
|
||||||
|
|
||||||
|
export HOSTNAME ?= $(shell cat /proc/sys/kernel/hostname)
|
||||||
|
|
||||||
export STOCKHOLM_VERSION ?= $(shell \
|
export STOCKHOLM_VERSION ?= $(shell \
|
||||||
version=git.$$(git describe --always --dirty); \
|
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); \
|
date=$$(date +%y.%m); \
|
||||||
printf '%s' "$$date.$$version"; \
|
printf '%s' "$$date.$$version"; \
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user