Makefile 446 B

12345678910111213141516171819202122
  1. .PHONY: build doc fmt lint run test vendor_clean vendor_get vendor_update vet
  2. # Prepend our _vendor directory to the system GOPATH
  3. # so that import path resolution will prioritize
  4. # our third party snapshots.
  5. LDFLAGS=-ldflags "-s -w"
  6. GOFILES=$(shell ls ./src/*.go)
  7. BINARY=./bin/yay
  8. default: build
  9. build:
  10. go build -v -o ${BINARY} ${LDFLAGS} ${GOFILES}
  11. release:
  12. go build -v -o ${BINARY} ./src/main.go
  13. run: build
  14. ${BINARY}
  15. clean:
  16. go clean