~juju-qa/ubuntu/yakkety/juju/2.0-rc3-again

« back to all changes in this revision

Viewing changes to src/launchpad.net/goyaml/Makefile

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-04-24 22:34:47 UTC
  • Revision ID: package-import@ubuntu.com-20130424223447-f0qdji7ubnyo0s71
Tags: upstream-1.10.0.1
ImportĀ upstreamĀ versionĀ 1.10.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include $(GOROOT)/src/Make.inc
 
2
 
 
3
YAML=yaml-0.1.3
 
4
LIBYAML=$(PWD)/$(YAML)/src/.libs/libyaml.a
 
5
 
 
6
TARG=launchpad.net/goyaml
 
7
 
 
8
GOFILES=\
 
9
        goyaml.go\
 
10
        resolve.go\
 
11
 
 
12
CGOFILES=\
 
13
        decode.go\
 
14
        encode.go\
 
15
 
 
16
CGO_OFILES+=\
 
17
        helpers.o\
 
18
        api.o\
 
19
        scanner.o\
 
20
        reader.o\
 
21
        parser.o\
 
22
        writer.o\
 
23
        emitter.o\
 
24
 
 
25
GOFMT=gofmt
 
26
 
 
27
BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go))
 
28
 
 
29
all: package
 
30
gofmt: $(BADFMT)
 
31
        @for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done
 
32
 
 
33
include $(GOROOT)/src/Make.pkg
 
34
 
 
35
ifneq ($(BADFMT),)
 
36
ifneq ($(MAKECMDGOALS),gofmt)
 
37
$(warning WARNING: make gofmt: $(BADFMT))
 
38
endif
 
39
endif