Makefile 197 B

12345678910111213141516171819
  1. .PHONY: build
  2. build:
  3. go build \
  4. -trimpath \
  5. -buildmode=pie \
  6. -ldflags "-s -w" \
  7. .
  8. .PHONY: test
  9. test:
  10. go test -v ./...
  11. .PHONY: fmt
  12. fmt:
  13. gofmt -d -e -s .
  14. .PHONY: clean
  15. clean:
  16. go clean