From cfca3d8f664da87e94eac5afb83f1afae1bbd400 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Aug 2013 21:42:08 -0400 Subject: [PATCH] add `make deps` --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 4c354a7cf..776d27dca 100644 --- a/Makefile +++ b/Makefile @@ -3,22 +3,24 @@ OK_COLOR=\033[32;01m ERROR_COLOR=\033[31;01m WARN_COLOR=\033[33;01m -all: +all: deps @mkdir -p bin/ - @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" - @go get -d -v ./... @echo "$(OK_COLOR)==> Building$(NO_COLOR)" @./scripts/build.sh +deps: + @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" + @go get -d -v ./... + @go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d + clean: @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build format: go fmt ./... -test: +test: deps @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)" - @go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d go test ./... -.PHONY: all format test +.PHONY: all deps format test