2013-06-30 08:13:01 -04:00
|
|
|
NO_COLOR=\033[0m
|
|
|
|
OK_COLOR=\033[32;01m
|
|
|
|
ERROR_COLOR=\033[31;01m
|
|
|
|
WARN_COLOR=\033[33;01m
|
2013-05-07 14:39:32 -04:00
|
|
|
|
2013-03-23 03:48:20 -04:00
|
|
|
all:
|
|
|
|
@mkdir -p bin/
|
2013-05-24 00:57:30 -04:00
|
|
|
@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
|
|
|
|
@go get -d -v ./...
|
|
|
|
@echo "$(OK_COLOR)==> Building$(NO_COLOR)"
|
2013-06-20 01:44:02 -04:00
|
|
|
@./scripts/build.sh
|
2013-03-23 03:48:20 -04:00
|
|
|
|
2013-03-24 17:47:59 -04:00
|
|
|
format:
|
|
|
|
go fmt ./...
|
|
|
|
|
2013-03-24 17:31:18 -04:00
|
|
|
test:
|
2013-05-24 00:57:30 -04:00
|
|
|
@echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)"
|
2013-03-25 17:17:21 -04:00
|
|
|
@go list -f '{{range .TestImports}}{{.}}\
|
|
|
|
{{end}}' ./... | xargs -n1 go get -d
|
2013-04-20 20:17:44 -04:00
|
|
|
go test ./...
|
2013-03-24 17:31:18 -04:00
|
|
|
|
2013-03-25 17:17:21 -04:00
|
|
|
.PHONY: all format test
|