blob: f468275cb4bba3c3c3dd43a4ba4574905a470d88 [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) $(filter-out printer_test.go,$(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