-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.16 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: all go-doc install clean
all: go-doc
go-doc:
go build -o bin/go-doc
clean:
rm bin/go-doc
install:
@echo "Installing go-doc..."
go install
@echo "Installing Zsh completion..."
go-doc -install-completion
@echo "done."
licenses.csv: go.mod go.sum
go-licenses csv . | tee licenses.csv
internal/index/benchmarks.txt: internal/index/*.go
go test -bench=. -benchmem -run NOTHING ./internal/index > internal/index/benchmarks.txt
internal/index/bench-summary.txt: internal/index/benchmarks.txt
grep '^Benchmark' internal/index/benchmarks.txt | sort > internal/index/bench-summary.txt
.PHONY: bench-summary
bench-summary: internal/index/bench-summary.txt
cat internal/index/bench-summary.txt
.PHONY: diff diff-all diff-main diff-dirs diff-pkg
diff:
git diff --stat official-go-doc -- main.go dirs.go pkg.go doc_test.go
@echo
git diff --stat official-go-doc -- *extra.go
diff-all:
git diff -p official-go-doc -- main.go dirs.go pkg.go doc_test.go
diff-main:
git diff -p official-go-doc -- main.go
diff-dirs:
git diff -p official-go-doc -- dirs.go
diff-pkg:
git diff -p official-go-doc -- pkg.go
diff-test:
git diff -p official-go-doc -- doc_test.go