From f2f8f3333588ae765954e8648673a6dadad92dd9 Mon Sep 17 00:00:00 2001 From: Dawid Pogorzelski Date: Wed, 27 Oct 2021 09:52:16 +0200 Subject: [PATCH] Add a makefile --- .gitignore | 1 + Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 5633f31..8029b3b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ getenv +dist/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5506988 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +VERSION=$(shell git describe) +DIST=dist + +all: linux-amd64 + +linux-amd64: + GOOS=linux GOARCH=amd64 go build -o $(DIST)/amd64/getenv + zip $(DIST)/getenv-$(VERSION)-linux-amd64.zip $(DIST)/amd64/getenv \ No newline at end of file