github.com/supr/packer@v0.3.10-0.20131015195147-7b09e24ac3c1/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 DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) 6 7 all: deps 8 @mkdir -p bin/ 9 @echo "$(OK_COLOR)==> Building$(NO_COLOR)" 10 @bash --norc -i ./scripts/build.sh 11 12 deps: 13 @echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" 14 @go get -d -v ./... 15 @echo $(DEPS) | xargs -n1 go get -d 16 17 updatedeps: 18 @echo "$(OK_COLOR)==> Updating all dependencies$(NO_COLOR)" 19 @go get -d -v -u ./... 20 @echo $(DEPS) | xargs -n1 go get -d -u 21 22 clean: 23 @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build 24 25 format: 26 go fmt ./... 27 28 test: deps 29 @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)" 30 go test ./... 31 32 .PHONY: all clean deps format test updatedeps