From 7336d0b5544f10a635eab7b52ddcae89d44bd490 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 23 Jan 2018 18:42:46 +0100 Subject: Add Makefile and Version/Build information --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a08c29 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +VERSION != git describe --tags --always +BUILD != date +%FT%T%z + +build: + go build -ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}" -- cgit v1.2.3