From 51a3a8fd214465b9f679fd4bc7e8687476eb3668 Mon Sep 17 00:00:00 2001 From: Mike Watkins Date: Thu, 23 Feb 2023 14:32:17 -0800 Subject: [PATCH] add Makefile --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fb116fc --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +BINARY=knockr + +# build a linux CGO-free binary for upload to github release page +# -s -w strips debug info as well +build: + GOOS=linux CGO=0 go build -v -ldflags="-s -w -X 'main.version=`git describe --tags --abbrev=0`'" + +clean: + rm ${BINARY} + +lint: + golangci-lint run +