Skip to content

Commit e8927fc

Browse files
committed
fix: make VERSION optional
This makes a passed-in `VERSION` eg. make VERSION=2.1.0 # or.. VERSION=2.1.0 make take precedence. The `git-describe` invocation will only occur if not provided with a version. Note that we need to `export` the derived `VERSION` though, otherwise the `version` target won't "see" it and will echo "VERSION not set".
1 parent d4280bb commit e8927fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
VERSION := $(shell git describe --always --dirty)
1+
VERSION ?= $(shell git describe --always --dirty)
2+
export VERSION
23

34
help:
45
@echo 'make build - build the clipper executable'

0 commit comments

Comments
 (0)