Add Makefile

This commit is contained in:
Mislav Marohnić 2019-10-07 16:58:29 +02:00
parent ea7570cfde
commit 6de30011f4
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
bin/gh

7
Makefile Normal file
View file

@ -0,0 +1,7 @@
BUILD_FILES = $(shell go list -f '{{range .GoFiles}}{{$$.Dir}}/{{.}}\
{{end}}' ./...)
# export GOFLAGS := -mod=vendor $GOFLAGS
bin/gh: $(BUILD_FILES)
go build -o "$@"