您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
390B

  1. .PHONY: all test clean build install
  2. GOFLAGS ?= $(GOFLAGS:)
  3. ARCH=$(shell ls $(GOPATH)/pkg | head -n 1)
  4. PKG=$(GOPATH)/pkg/$(ARCH)/github.com/goanywhere
  5. all: test build
  6. clean:
  7. @find $(PKG) -name 'rex.a' -delete
  8. @find $(PKG) -name 'rex' -type d -print0|xargs -0 rm -r
  9. build: clean
  10. @go get -v ./...
  11. test:
  12. @go test -v ./...
  13. bench: install
  14. @go test -run=NONE -bench=. $(GOFLAGS) ./...