modernc.org/knuth@v0.0.4/Makefile (about) 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 5 .PHONY: all clean edit editor 6 7 all: 8 go generate -v ./... 9 @grep -nir 'knuthw\|\<2022\>\|pdftex' || true 10 unconvert2 -apply ./... # go install modernc.org/uncovert2@latest 11 gofmt -l -s -w . 12 go build -v ./... 13 go test -count=1 ./... 2>&1 | tee log-editor 14 go install -v ./cmd... 15 golint ./... 16 staticcheck 17 18 clean: 19 rm -f cpu.test mem.test *.out 20 go clean 21 22 edit: 23 @touch log 24 @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi 25 26 editor: 27 @grep -nir 'knuthw\|\<2022\>\|pdftex' || true 28 @find -name \*.pdf -or -name \*.pas 29 gofmt -l -s -w *.go 30 go test 2>&1 | tee log-editor