1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
include $(GOROOT)/src/Make.inc all: package TARG=launchpad.net/juju/go/schema GOFILES=\ schema.go\ GOFMT=gofmt BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(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 include $(GOROOT)/src/Make.pkg |