Makefile 798 B

1234567891011121314151617181920212223242526272829303132
  1. BUMP_VERSION := $(GOPATH)/bin/bump_version
  2. MEGACHECK := $(GOPATH)/bin/megacheck
  3. WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
  4. IGNORES := 'github.com/kevinburke/ssh_config/config.go:U1000 github.com/kevinburke/ssh_config/config.go:S1002 github.com/kevinburke/ssh_config/token.go:U1000'
  5. $(MEGACHECK):
  6. go get honnef.co/go/tools/cmd/megacheck
  7. lint: $(MEGACHECK)
  8. go vet ./...
  9. $(MEGACHECK) --ignore=$(IGNORES) ./...
  10. test: lint
  11. @# the timeout helps guard against infinite recursion
  12. go test -timeout=250ms ./...
  13. race-test: lint
  14. go test -timeout=500ms -race ./...
  15. $(BUMP_VERSION):
  16. go get -u github.com/kevinburke/bump_version
  17. release: test | $(BUMP_VERSION)
  18. $(BUMP_VERSION) minor config.go
  19. force: ;
  20. AUTHORS.txt: force | $(WRITE_MAILMAP)
  21. $(WRITE_MAILMAP) > AUTHORS.txt
  22. authors: AUTHORS.txt