| 1 |
# Copyright (c) 2014 The ql 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 nuke |
| 6 |
|
| 7 |
all: editor |
| 8 |
go install |
| 9 |
go vet |
| 10 |
golint . |
| 11 |
make todo |
| 12 |
|
| 13 |
bench: all |
| 14 |
go test -run NONE -bench . |
| 15 |
|
| 16 |
clean: |
| 17 |
go clean |
| 18 |
rm -f *~ |
| 19 |
|
| 20 |
cover: |
| 21 |
t=$(shell tempfile) ; go test -coverprofile $$t && go tool cover -html $$t && unlink $$t |
| 22 |
|
| 23 |
editor: |
| 24 |
go fmt |
| 25 |
go test -i |
| 26 |
go test |
| 27 |
go build |
| 28 |
|
| 29 |
nuke: |
| 30 |
go clean -i |
| 31 |
|
| 32 |
todo: |
| 33 |
@grep -n ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* *.go || true |
| 34 |
@grep -n TODO *.go || true |
| 35 |
@grep -n BUG *.go || true |
| 36 |
@grep -n println *.go || true |
| 37 |
|
| 38 |
later: |
| 39 |
@grep -n LATER *.go || true |
| 40 |
@grep -n MAYBE *.go || true |