modernc.org/ccgo/v3@v3.16.14/Makefile (about) 1 # Copyright 2019 The GOCC 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 editor internalError later nuke todo edit 6 7 grep=--include=*.go 8 ngrep='TODOOK\|internalError\|testdata' 9 10 all: 11 LC_ALL=C make all_log 2>&1 | tee log 12 13 all_log: 14 date 15 go version 16 uname -a 17 ./unconvert.sh 18 gofmt -l -s -w *.go 19 GOOS=linux GOARCH=arm go build -o /dev/null 20 GOOS=linux GOARCH=386 go build -o /dev/null 21 GOOS=linux GOARCH=amd64 go build -o /dev/null 22 GOOS=windows GOARCH=386 go build -o /dev/null 23 GOOS=windows GOARCH=amd64 go build -o /dev/null 24 go vet 2>&1 | grep -v $(ngrep) || true 25 golint 2>&1 | grep -v $(ngrep) || true 26 make todo 27 misspell *.go 28 staticcheck | grep -v 'lexer\.go' || true 29 maligned || true 30 grep -n 'files.*, ok' log 31 @grep -n --color=never 'FAIL\|PASS' log 32 @grep -n --color=always 'FAIL' log 33 grep -n --color=always 'nil pointer' log 34 grep -c 'exit status 1' log || true 35 grep -c 'exit status 2' log || true 36 LC_ALL=C date 2>&1 | tee -a log 37 38 clean: 39 go clean 40 rm -f *~ *.test *.out 41 42 edit: 43 touch log 44 gvim -p Makefile *.go & 45 46 editor: 47 gofmt -l -s -w *.go 48 GO111MODULE=off go build -v -o $(GOPATH)/bin/ccgo 49 50 later: 51 @grep -n $(grep) LATER * || true 52 @grep -n $(grep) MAYBE * || true 53 54 nuke: clean 55 go clean -i 56 57 todo: 58 @grep -nr $(grep) ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* * | grep -v $(ngrep) || true 59 @grep -nr $(grep) 'TODO\|panic' * | grep -v $(ngrep) || true 60 @grep -nr $(grep) BUG * | grep -v $(ngrep) || true 61 @grep -nr $(grep) [^[:alpha:]]println * | grep -v $(ngrep) || true 62 @grep -nir $(grep) 'work.*progress' || true