File: Makefile

package info (click to toggle)
golang-github-cznic-mathutil 0.0~git20150605.0.a804f0f-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 656 kB
  • ctags: 469
  • sloc: makefile: 40
file content (31 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2014 The mathutil Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

.PHONY: all todo clean nuke

grep=--include=*.go --include=*.run --include=*.y

all: editor
	go build
	go vet || true
	golint .
	go install
	make todo

clean:
	go clean

editor:
	go fmt
	go test -i
	go test

todo:
	@grep -nr $(grep) ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* * || true
	@grep -nr $(grep) TODO * || true
	@grep -nr $(grep) BUG * || true
	@grep -nr $(grep) println * || true

nuke: clean
	go clean -i