Add make format task

This commit is contained in:
Carlos Diaz-Padron 2014-05-06 01:38:21 -04:00
parent 89a68f5fb2
commit cc44a2fcb9
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...)
all: deps all: deps
@mkdir -p bin/ @mkdir -p bin/
@ -18,6 +19,9 @@ test: deps
integ: integ:
go list ./... | INTEG_TESTS=yes xargs -n1 go test go list ./... | INTEG_TESTS=yes xargs -n1 go test
format:
go fmt $(PACKAGES)
web: web:
./scripts/website_run.sh ./scripts/website_run.sh