~samwhited/xmpp

ref: 379c0dc11b58c2a0b146bf34557e6e5360bd592f xmpp/Makefile -rw-r--r-- 446 bytes
379c0dc1Sam Whited styling: remove styling experiment 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 $@