~samwhited/xmpp

ref: c4240cc1b1409e88fc1bc96793b0cbbbf48d084b xmpp/Makefile -rw-r--r-- 446 bytes
c4240cc1Sam Whited design: add an open question to stanza mux 2 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 $@