~niemeyer/pyjuju/go-store

« back to all changes in this revision

Viewing changes to formula/Makefile

  • Committer: Gustavo Niemeyer
  • Date: 2011-09-05 20:35:00 UTC
  • mfrom: (2.1.4 go-formulas)
  • Revision ID: gustavo@niemeyer.net-20110905203500-20rf3w8b16m4zrfl
Merged go-iface-schemas branch [r=fwereade,hazmat]

This kicks off the formula schema support in the Go port.

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/ensemble/go/formula
 
6
 
 
7
GOFILES=\
 
8
        formula.go\
 
9
 
 
10
GOFMT=gofmt
 
11
BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go))
 
12
 
 
13
gofmt: $(BADFMT)
 
14
        @for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done
 
15
 
 
16
ifneq ($(BADFMT),)
 
17
ifneq ($(MAKECMDGOALS),gofmt)
 
18
$(warning WARNING: make gofmt: $(BADFMT))
 
19
endif
 
20
endif
 
21
 
 
22
include $(GOROOT)/src/Make.pkg
 
23