]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - Makefile
safcm: add commit date to version output
[safcm/safcm.git] / Makefile
index 4bf77c25414480744a3747898e44fa803c83dba0..b21ed3d0893740fd8fe2f590065f1f60738e43a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 LDFLAGS = '\
-    -X "main.versionGit=$(shell git describe --long --tags --dirty --always)" \
+    -X "main.versionGit=$(shell git describe --long --tags --dirty --always) \
+$(shell git show --no-patch --pretty=format:%as)" \
     -X "main.versionGo=$(shell go version)" \
 '
 # Build with `make GOFLAGS=` if -race is not supported