Makefile 425 B

1234567891011121314151617181920
  1. # Copyright 2014 The fsm Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. .PHONY: all clean edit editor
  5. all:
  6. clean:
  7. rm -f cpu.test mem.test *.out
  8. go clean
  9. edit:
  10. @touch log
  11. @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json *.go & fi
  12. editor:
  13. gofmt -l -s -w *.go
  14. go test 2>&1 | tee log-editor
  15. golint