Makefile 477 B

123456789101112131415161718192021222324
  1. # Copyright 2023 The Regexp 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. DIR := ${CURDIR}
  6. all:
  7. clean:
  8. rm -f *.text *.out *.test
  9. go clean
  10. edit:
  11. @touch log
  12. @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi
  13. editor:
  14. date > log-editor
  15. gofmt -l -s -w *.go
  16. go test -tags=probes 2>&1 | tee -a log-editor
  17. date >> log-editor
  18. golint