makefile 364 B

1234567891011121314151617
  1. SHELL := /bin/bash
  2. machine.go: machine.go.rl
  3. ragel -Z -G2 -e -o $@ $<
  4. @gofmt -w -s $@
  5. @sed -i '/^\/\/line/d' $@
  6. .PHONY: build
  7. build: machine.go
  8. .PHONY: bench
  9. bench: *_test.go machine.go
  10. go test -bench=. -benchmem -benchtime=5s ./...
  11. .PHONY: tests
  12. tests: *_test.go machine.go
  13. go test -race -timeout 10s -coverprofile=coverage.out -covermode=atomic -v ./...