2015-09-30 03:21:17 +02:00
|
|
|
.PHONY: vendor
|
2015-05-15 23:55:26 +02:00
|
|
|
|
2015-09-30 03:21:17 +02:00
|
|
|
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
2014-02-07 13:10:01 +03:00
|
|
|
|
2015-09-30 03:21:17 +02:00
|
|
|
all: gen build
|
|
|
|
|
|
|
|
deps:
|
|
|
|
go get golang.org/x/tools/cmd/cover
|
|
|
|
go get golang.org/x/tools/cmd/vet
|
|
|
|
go get -u github.com/kr/vexp
|
|
|
|
go get -u github.com/eknkc/amber/amberc
|
|
|
|
go get -u github.com/jteeuwen/go-bindata/...
|
|
|
|
go get -u github.com/elazarl/go-bindata-assetfs/...
|
|
|
|
|
|
|
|
gen:
|
|
|
|
go generate $(go list ./... | grep -v /vendor/)
|
2015-09-03 01:52:59 +02:00
|
|
|
|
|
|
|
build:
|
2015-09-30 03:21:17 +02:00
|
|
|
GO15VENDOREXPERIMENT=1 go build
|
|
|
|
|
|
|
|
build_static:
|
|
|
|
GO15VENDOREXPERIMENT=1 go build --ldflags '-extldflags "-static"' -o drone_static
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -cover $(PACKAGES)
|
|
|
|
|
|
|
|
deb:
|
|
|
|
mkdir -p contrib/debian/drone/usr/local/bin
|
|
|
|
mkdir -p contrib/debian/drone/var/lib/drone
|
|
|
|
mkdir -p contrib/debian/drone/var/cache/drone
|
|
|
|
cp drone contrib/debian/drone/usr/local/bin
|
|
|
|
-dpkg-deb --build contrib/debian/drone
|
|
|
|
|
|
|
|
vendor:
|
|
|
|
vexp
|