~samwhited/xmpp

ref: b2f3a9a952493ffcf467eafa59803c27fa099e2d xmpp/Makefile -rw-r--r-- 446 bytes
b2f3a9a9Sam Whited xmpp: make SendElement safe for concurrent use 1 year, 8 months 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 $@