Added Makefile

This commit is contained in:
Jguer 2016-09-05 03:32:57 +01:00
parent a11be21387
commit 460ea31c76
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View file

@ -25,3 +25,4 @@ _testmain.go
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
bin/yay

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
.PHONY: build doc fmt lint run test vendor_clean vendor_get vendor_update vet
# Prepend our _vendor directory to the system GOPATH
# so that import path resolution will prioritize
# our third party snapshots.
LDFLAGS=-ldflags "-s -w"
GOFILES=$(shell ls ./src/*.go)
BINARY=./bin/yay
default: build
build:
go build -v -o ${BINARY} ${LDFLAGS} ${GOFILES}
release:
go build -v -o ${BINARY} ./src/main.go
run: build
${BINARY}
clean:
go clean