LEFT | RIGHT |
1 include $(GOROOT)/src/Make.inc | 1 include $(GOROOT)/src/Make.inc |
2 | 2 |
3 all: package | 3 all: package |
4 | 4 |
5 TARG=launchpad.net/juju/go/juju/ec2 | 5 TARG=launchpad.net/juju/go/juju/ec2 |
6 | 6 |
7 GOFILES=\ | 7 GOFILES=\ |
8 » config.go\ | 8 » ec2.go\ |
9 » conn.go\ | |
10 » image.go\ | |
11 » util.go\ | |
12 | 9 |
13 GOFMT=gofmt | 10 GOFMT=gofmt |
14 BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go)) | 11 BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go)) |
15 | 12 |
16 gofmt: $(BADFMT) | 13 gofmt: $(BADFMT) |
17 @for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done | 14 @for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done |
18 | 15 |
19 ifneq ($(BADFMT),) | 16 ifneq ($(BADFMT),) |
20 ifneq ($(MAKECMDGOALS),gofmt) | 17 ifneq ($(MAKECMDGOALS),gofmt) |
21 $(warning WARNING: make gofmt: $(BADFMT)) | 18 $(warning WARNING: make gofmt: $(BADFMT)) |
22 endif | 19 endif |
23 endif | 20 endif |
24 | 21 |
25 include $(GOROOT)/src/Make.pkg | 22 include $(GOROOT)/src/Make.pkg |
26 | 23 |
LEFT | RIGHT |