blob: 090d25be01ec534713ae19f2a8ec14e1a16a0f8d [file] [log] [blame]
include $(GOROOT)/src/Make.inc
TARG=launchpad.net/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