Makefile (421B)
1 # Copyright 2022 The Opt 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: clean edit editor 6 7 clean: 8 rm -f log-* cpu.test mem.test *.out 9 go clean 10 11 edit: 12 @touch log 13 @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi 14 15 editor: 16 gofmt -l -s -w *.go 17 go test -o /dev/null -c 18 go install 2>&1 | tee log-editor