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.

21 satır
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) ./...