Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mwyvr committed Feb 23, 2023
1 parent 006c2c2 commit 51a3a8f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 51a3a8f

Please sign in to comment.