yay/Makefile

23 lines
440 B
Makefile
Raw Normal View History

2016-09-05 02:32:57 +00:00
.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"
2016-09-06 21:22:20 +00:00
GOFILES=$(shell ls *.go)
2016-09-05 02:32:57 +00:00
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