fix(makefile): correctly set VERSION

This commit is contained in:
2023-12-16 01:15:34 +00:00
parent a3dc259e3b
commit 1d464fbd3a

View File

@@ -1,6 +1,6 @@
NAME = macos-battery-exporter
BINARY = bin/${NAME}
VERSION ?= $(shell cat VERSION)
VERSION ?= $(shell git describe --tags --exact 2>/dev/null || echo "0.0.0-dev")
SOURCES = $(shell find . -name '*.go' -o -name 'Makefile')
$(BINARY): $(SOURCES)