Makefile 817 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 2024 The tcl9.0-go 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 test work
  5. all: editor
  6. golint 2>&1
  7. staticcheck 2>&1
  8. build_all_targets:
  9. ./build_all_targets.sh
  10. echo done
  11. clean:
  12. rm -f log-* cpu.test mem.test *.out go.work*
  13. go clean
  14. edit:
  15. @touch log
  16. @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile all_test.go go.mod builder.json tcl.go & fi
  17. editor:
  18. gofmt -l -s -w .
  19. go test -c -o /dev/null ./...
  20. go build -v -o /dev/null ./...
  21. test:
  22. go test -v -timeout 24h -count=1
  23. work:
  24. rm -f go.work*
  25. go work init
  26. go work use .
  27. go work use ../cc/v4
  28. go work use ../ccgo/v3
  29. go work use ../ccgo/v4
  30. go work use ../libc
  31. go work use ../libtcl9.0
  32. go work use ../libz