blob: 082e8d80a9e7c6758a7bb0cf5522d1456318ec92 [file] [log] [blame]
include $(GOROOT)/src/Make.inc
TARG=gocheck
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
GOFILES=\
gocheck.go\
helpers.go\
run.go\
checkers.go\
printer.go\
include $(GOROOT)/src/Make.pkg
GOFMT=gofmt -spaces=true -tabwidth=4 -tabindent=false
BADFMT=$(shell $(GOFMT) -l $(GOFILES) $(wildcard *_test.go))
gofmt: $(BADFMT)
@for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done
ifneq ($(BADFMT),)
ifneq ($(MAKECMDGOALS),gofmt)
#$(warning WARNING: make gofmt: $(BADFMT))
endif
endif