~samwhited/xmpp

ref: 150780b88cc2cdeeb486eaf759f74228254daffa xmpp/Makefile -rw-r--r-- 373 bytes
150780b8Sam Whited Fix make test 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
.PHONEY: test
test:
	GO15VENDOREXPERIMENT=1 go test -cover $$(GO15VENDOREXPERIMENT=1 go list ./... | grep -v '/vendor/')

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