github.com/marinho/drone@v0.2.1-0.20140504195434-d3ba962e89a7/Godeps/_workspace/src/launchpad.net/goyaml/Makefile (about)

     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