Add a makefile

This commit is contained in:
2021-10-27 09:52:16 +02:00
parent c71893ea12
commit f2f8f33335
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
getenv getenv
dist/*

8
Makefile Normal file
View File

@@ -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