Skip to content

Commit d1122aa

Browse files
committed
build: allow specifying a version for the build
Builds from outside a git directory do not show a version for checkmake --version. With this change, the auto-detected version can be overridden at build time with make VERSION=version binaries Signed-off-by: Michael Adam <[email protected]>
1 parent 659e51b commit d1122aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export GOFLAGS = -mod=mod
99
NAME := checkmake
1010
DESC := linter for Makefiles
1111
PREFIX ?= usr/local
12-
VERSION := $(shell git describe --tags --always --dirty)
12+
VERSION ?= $(shell git describe --tags --always --dirty)
1313
GOVERSION := $(shell go version)
1414
BUILDTIME := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
1515
BUILDDATE := $(shell date -u +"%B %d, %Y")

0 commit comments

Comments
 (0)