github.com/tonto/cli@v0.0.0-20180104210444-aec958fa47db/Makefile (about)

     1  all: dep build	
     2  	./fn
     3  
     4  build: 
     5  	go build -o fn
     6  
     7  install:
     8  	go build -o ${GOPATH}/bin/fn
     9  
    10  docker: 
    11  	docker build -t fnproject/fn:latest .
    12  
    13  dep:
    14  	dep ensure --vendor-only
    15  
    16  dep-up:
    17  	dep ensure
    18  
    19  test:
    20  	./test.sh
    21  
    22  release:
    23  	GOOS=linux go build -o fn_linux
    24  	GOOS=darwin go build -o fn_mac
    25  	GOOS=windows go build -o fn.exe
    26  	# Uses fnproject/go:x.x-dev because golang:alpine has this issue: https://github.com/docker-library/golang/issues/155 and this https://github.com/docker-library/golang/issues/153
    27  	docker run --rm -v ${PWD}:/go/src/github.com/fnproject/cli -w /go/src/github.com/fnproject/cli fnproject/go:1.9-dev go build -o fn_alpine
    28  
    29  .PHONY: install