~samwhited/xmpp

ref: 0b7a9e490e1ee65f65d4d35a2b01e5d28adaf20b xmpp/Makefile -rw-r--r-- 479 bytes
0b7a9e49Sam Whited Remove Go 1.6 support 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PACKAGES=$$(go list ./... | grep -v '/vendor/')

.PHONEY: test
test:
	go test -cover $(PACKAGES)

.PHONEY: bench
bench:
	go test -cover -bench . -benchmem -run 'Benchmark.*' $(PACKAGES)

.PHONEY: vet
vet:
	go vet $(PACKAGES)

.PHONEY: ci
ci: test bench vet
	go build -race

deps.svg: *.go
	(   echo "digraph G {"; \
	go list -f '{{range .Imports}}{{printf "\t%q -> %q;\n" $$.ImportPath .}}{{end}}' \
		$$(go list -f '{{join .Deps " "}}' .) .; \
	echo "}"; \
	) | dot -Tsvg -o $@