~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to cloudinit/Makefile

  • Committer: Roger Peppe
  • Date: 2011-12-07 17:03:34 UTC
  • mto: (25.3.4 go-trunk)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: roger.peppe@canonical.com-20111207170334-soasb88g2x5mpkf5
add cloudinit package

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/cloudinit
 
6
 
 
7
GOFILES=\
 
8
        cloudinit.go\
 
9
        options.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