From 1d464fbd3af42a55b04b7b1468ffef2711f8d7cf Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 16 Dec 2023 01:15:34 +0000 Subject: [PATCH] fix(makefile): correctly set VERSION --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67940f3..08f48af 100644 --- a/Makefile +++ b/Makefile @@ -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)