~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to juju/jujutest/Makefile

  • Committer: Roger Peppe
  • Date: 2011-12-02 14:55:53 UTC
  • mfrom: (19.1.1 go-juju-initial-ec2)
  • Revision ID: roger.peppe@canonical.com-20111202145553-54a38wrsdywqvozd
mergeĀ go-juju-initial-ec2

Show diffs side-by-side

added added

removed removed

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