2017-04-25 12:57:06 -04:00
|
|
|
#
|
2017-05-09 12:38:23 -04:00
|
|
|
# github.com/docker/cli
|
2017-04-25 12:57:06 -04:00
|
|
|
#
|
|
|
|
|
2017-05-14 13:24:10 -04:00
|
|
|
all: binary
|
|
|
|
|
2017-04-25 12:57:06 -04:00
|
|
|
# remove build artifacts
|
2017-05-09 17:29:14 -04:00
|
|
|
.PHONY: clean
|
2017-04-25 12:57:06 -04:00
|
|
|
clean:
|
2017-05-08 12:01:44 -04:00
|
|
|
@rm -rf ./build/*
|
2017-04-25 12:57:06 -04:00
|
|
|
|
2017-04-27 18:57:35 -04:00
|
|
|
# run go test
|
|
|
|
# the "-tags daemon" part is temporary
|
2017-05-09 17:29:14 -04:00
|
|
|
.PHONY: test
|
2017-04-27 18:57:35 -04:00
|
|
|
test:
|
|
|
|
@go test -tags daemon -v $(shell go list ./... | grep -v /vendor/)
|
|
|
|
|
2017-05-09 17:29:14 -04:00
|
|
|
.PHONY: lint
|
2017-05-02 15:10:03 -04:00
|
|
|
lint:
|
|
|
|
@gometalinter --config gometalinter.json ./...
|
|
|
|
|
2017-05-11 18:52:17 -04:00
|
|
|
.PHONY: binary
|
|
|
|
binary:
|
|
|
|
@./scripts/build/binary
|
|
|
|
|
2017-04-25 12:57:06 -04:00
|
|
|
# build the CLI for multiple architectures
|
2017-05-09 17:29:14 -04:00
|
|
|
.PHONY: cross
|
2017-05-11 18:52:17 -04:00
|
|
|
cross:
|
2017-05-09 12:38:23 -04:00
|
|
|
@./scripts/build/cross
|
2017-05-02 16:40:29 -04:00
|
|
|
|
2017-05-11 18:52:17 -04:00
|
|
|
.PHONY: dynbinary
|
|
|
|
dynbinary:
|
|
|
|
@./scripts/build/dynbinary
|
|
|
|
|
2017-05-15 17:00:35 -04:00
|
|
|
.PHONY: watch
|
|
|
|
watch:
|
|
|
|
@./scripts/test/watch
|
|
|
|
|
2017-05-09 17:29:14 -04:00
|
|
|
# download dependencies (vendor/) listed in vendor.conf
|
|
|
|
.PHONY: vendor
|
2017-05-02 16:40:29 -04:00
|
|
|
vendor: vendor.conf
|
|
|
|
@vndr 2> /dev/null
|
2017-05-14 13:24:10 -04:00
|
|
|
@scripts/validate/check-git-diff vendor
|
2017-05-09 15:37:22 -04:00
|
|
|
|
|
|
|
cli/compose/schema/bindata.go: cli/compose/schema/data/*.json
|
|
|
|
go generate github.com/docker/cli/cli/compose/schema
|
|
|
|
|
|
|
|
compose-jsonschema: cli/compose/schema/bindata.go
|
2017-05-14 13:24:10 -04:00
|
|
|
@scripts/validate/check-git-diff cli/compose/schema/bindata.go
|