From dcb1bb7624f15b24984cde558feeb0683a685318 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 17 Sep 2013 04:35:07 -0700 Subject: [PATCH] updatedeps target. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 776d27dca..934a12852 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ NO_COLOR=\033[0m OK_COLOR=\033[32;01m ERROR_COLOR=\033[31;01m WARN_COLOR=\033[33;01m +DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) all: deps @mkdir -p bin/ @@ -11,7 +12,11 @@ all: deps deps: @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" @go get -d -v ./... - @go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d + @echo $(DEPS) | xargs -n1 go get -d + +updatedeps: + @echo "$(OK_COLOR)==> Updating all dependencies$(NO_COLOR)" + @echo $(DEPS) | xargs -n1 go get -d -u clean: @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build