~samwhited/xmpp

ref: 551ca28f1d1f153e028b76ce9d53dbc5ff41dc01 xmpp/Makefile -rw-r--r-- 446 bytes
551ca28fSam Whited docs: rename LICENSE file 3 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
PACKAGES=$$(go list ./...)

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

.PHONEY: bench
bench: vendor
	go test -bench . -benchmem -run NONE $(PACKAGES)

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

vendor: Gopkg.toml
	dep ensure

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 $@