Makefile 298 B

123456789101112131415161718
  1. ci: fmt lint test
  2. fmt:
  3. ! gofmt -l *.go | read nothing
  4. go vet
  5. lint:
  6. go get github.com/golang/lint/golint
  7. golint *.go
  8. test: sysfs/fixtures/.unpacked
  9. go test -v ./...
  10. sysfs/fixtures/.unpacked: sysfs/fixtures.ttar
  11. ./ttar -C sysfs -x -f sysfs/fixtures.ttar
  12. touch $@
  13. .PHONY: fmt lint test ci