Makefile: add gofmt goal, cleanup

This commit is contained in:
Cheer Xiao 2014-01-28 14:47:59 +08:00
parent a5d5b0a2dd
commit de7ab1dc34

View File

@ -14,9 +14,12 @@ test:
coverage: $(PKG_COVERAGES)
gofmt:
gofmt -tabwidth=4 -w .
z-%.go: %.go
go tool cgo -godefs $< > $@
pre-commit: edit/tty/z-types.go
pre-commit: gofmt edit/tty/z-types.go
.PHONY: exe test coverage main pre-commit
.PHONY: exe test coverage gofmt pre-commit