Makefile 551 B

12345678910111213141516171819202122232425
  1. # Copyright 2023 The Knuth 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 generate fpc
  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 & fi
  12. editor:
  13. gofmt -l -s -w .
  14. go test 2>&1 | tee log-editor
  15. generate:
  16. go run generate.go
  17. go build -v ./...
  18. weave tex.web tex.ch
  19. rm -f tex.pas tex.tex CONTENTS.tex tex.log *.p internal/trip/tex.pas