diff Makefile @ 79:7b122b71fcfa draft

A good time to finally release a stable version Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Tue, 12 Dec 2023 14:09:17 +0000
parents d8727551f403
children 897d57a7ec95
line wrap: on
line diff
--- a/Makefile	Mon Dec 11 17:23:49 2023 +0000
+++ b/Makefile	Tue Dec 12 14:09:17 2023 +0000
@@ -1,6 +1,8 @@
 DESTDIR ?= 
-GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe
+GOFLAGS ?= -v -buildvcs=false -mod=vendor -buildmode=exe -ldflags "-w -X `go list`.Date=${DATE} -X `go list`.Vendor=${GOOS} -X `go list`.Version=${VERSION}"
 PREFIX ?= /usr/local
+DATE ?= `date -u +%F`
+GOOS ?= `go env GOOS`
 VERSION ?= `git describe --tags`
 
 build: