beego bee tool mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
624B

  1. VERSION = $(shell grep 'const version' cmd/commands/version/version.go | sed -E 's/.*"(.+)"$$/v\1/')
  2. .PHONY: all test clean build install
  3. GOFLAGS ?= $(GOFLAGS:)
  4. all: install test
  5. build:
  6. go build $(GOFLAGS) ./...
  7. install:
  8. go get $(GOFLAGS) ./...
  9. test: install
  10. go test $(GOFLAGS) ./...
  11. bench: install
  12. go test -run=NONE -bench=. $(GOFLAGS) ./...
  13. clean:
  14. go clean $(GOFLAGS) -i ./...
  15. publish:
  16. mkdir -p bin/$(VERSION)
  17. cd bin/$(VERSION)
  18. xgo -v -x --targets="windows/*,darwin/*,linux/386,linux/amd64,linux/arm-5,linux/arm64" -out bee_$(VERSION) github.com/beego/bee
  19. cd ..
  20. ghr -u beego -r bee $(VERSION) $(VERSION)