mk: show built version in build log

Replace the implicit shell-parsing with explicitly running the command.
This allows the built version to be reflected in the build log.

Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-06-22 12:11:59 +02:00 committed by Robin Jarry
parent 4ebeaa5b95
commit d889981088

View file

@ -2,7 +2,7 @@
.SUFFIXES:
.SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd
VERSION?=`git describe --long --tags --dirty 2>/dev/null || echo 0.10.0`
VERSION!=git describe --long --tags --dirty 2>/dev/null || echo 0.10.0
VPATH=doc
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin