Makefile 357 B

123456789101112131415161718192021222324252627
  1. # libseccomp-golang
  2. .PHONY: all check check-build check-syntax fix-syntax vet test lint
  3. all: check-build
  4. check: vet test
  5. check-build:
  6. go build
  7. check-syntax:
  8. gofmt -d .
  9. fix-syntax:
  10. gofmt -w .
  11. vet:
  12. go vet -v
  13. test:
  14. go test -v
  15. lint:
  16. @$(if $(shell which golint),true,$(error "install golint and include it in your PATH"))
  17. golint -set_exit_status