~niemeyer/goamz/sdb

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Andrew Chilton
  • Date: 2011-08-20 11:15:01 UTC
  • Revision ID: chilts@appsattic.com-20110820111501-gkaury1ioufs49ay
Adding initial revision to repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include $(GOROOT)/src/Make.inc
 
2
 
 
3
TARG=launchpad.net/goamz/sdb
 
4
 
 
5
GOFILES=\
 
6
        sdb.go\
 
7
        sign.go\
 
8
 
 
9
include $(GOROOT)/src/Make.pkg
 
10
 
 
11
GOFMT=gofmt
 
12
BADFMT=$(shell $(GOFMT) -l $(GOFILES) $(wildcard *_test.go) 2> /dev/null)
 
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