From 6dc71cf0163fc1509b1179144a64a73946761a80 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 27 Sep 2024 15:05:15 -0300 Subject: Makefile: make "vesion" public and a `const` --- Makefile | 2 +- src/gobang.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5cd3aa..4adcdce 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ tests/main.bin: tests/main.a go tool link $(GOLDFLAGS) -o $@ -L $(@D) --extldflags '$(LDLIBS)' $*.a src/version.go: Makefile - echo 'package $(NAME); var version = "$(VERSION)"' > $@ + echo 'package $(NAME); const Version = "$(VERSION)"' > $@ diff --git a/src/gobang.go b/src/gobang.go index f27cdea..dabdc69 100644 --- a/src/gobang.go +++ b/src/gobang.go @@ -54,7 +54,6 @@ var ( level LogLevel = LevelInfo emitMetric bool = true hostname string - Version = version ) -- cgit v1.2.3