~samwhited/xmpp

ref: fad579be6a84ef4238752ea8c5a6e8c265283527 xmpp/Makefile -rw-r--r-- 297 bytes
fad579beSam Whited Add dep graph generation script 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
.PHONEY: test
test:
	GO15VENDOREXPERIMENT=1 go test $$(go list ./... | grep -v '/vendor/')

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