github.com/phobos182/packer@v0.2.3-0.20130819023704-c84d2aeffc68/Makefile (about) 1 NO_COLOR=\033[0m 2 OK_COLOR=\033[32;01m 3 ERROR_COLOR=\033[31;01m 4 WARN_COLOR=\033[33;01m 5 6 all: deps 7 @mkdir -p bin/ 8 @echo "$(OK_COLOR)==> Building$(NO_COLOR)" 9 @./scripts/build.sh 10 11 deps: 12 @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" 13 @go get -d -v ./... 14 @go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d 15 16 clean: 17 @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build 18 19 format: 20 go fmt ./... 21 22 test: deps 23 @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)" 24 go test ./... 25 26 .PHONY: all deps format test