Commit 9fb38cc9 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

add `make deps`

parent 5515d6f8
...@@ -3,22 +3,24 @@ OK_COLOR=\033[32;01m ...@@ -3,22 +3,24 @@ OK_COLOR=\033[32;01m
ERROR_COLOR=\033[31;01m ERROR_COLOR=\033[31;01m
WARN_COLOR=\033[33;01m WARN_COLOR=\033[33;01m
all: all: deps
@mkdir -p bin/ @mkdir -p bin/
@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
@go get -d -v ./...
@echo "$(OK_COLOR)==> Building$(NO_COLOR)" @echo "$(OK_COLOR)==> Building$(NO_COLOR)"
@./scripts/build.sh @./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: clean:
@rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build
format: format:
go fmt ./... go fmt ./...
test: test: deps
@echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)" @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)"
@go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d
go test ./... go test ./...
.PHONY: all format test .PHONY: all deps format test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment