~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to charm/Makefile

  • Committer: Gustavo Niemeyer
  • Date: 2011-09-26 14:48:45 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: gustavo@niemeyer.net-20110926144845-atwp3u6blqngmhel
Bootstrapping store 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/charm
 
6
 
 
7
GOFILES=\
 
8
        bundle.go\
 
9
        config.go\
 
10
        dir.go\
 
11
        charm.go\
 
12
        meta.go\
 
13
        rel.go\
 
14
 
 
15
GOFMT=gofmt
 
16
BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go))
 
17
 
 
18
gofmt: $(BADFMT)
 
19
        @for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done
 
20
 
 
21
ifneq ($(BADFMT),)
 
22
ifneq ($(MAKECMDGOALS),gofmt)
 
23
$(warning WARNING: make gofmt: $(BADFMT))
 
24
endif
 
25
endif
 
26
 
 
27
include $(GOROOT)/src/Make.pkg
 
28