2017-04-25 12:57:06 -04:00
|
|
|
#
|
|
|
|
# github.com/docker/cli
|
|
|
|
#
|
|
|
|
|
|
|
|
.PHONY: build clean cross
|
|
|
|
|
|
|
|
# build the CLI
|
|
|
|
build: clean
|
|
|
|
@go build -o ./build/docker ./cmd/docker
|
|
|
|
|
|
|
|
# remove build artifacts
|
|
|
|
clean:
|
|
|
|
@rm -rf ./build
|
|
|
|
|
2017-04-27 18:57:35 -04:00
|
|
|
# run go test
|
|
|
|
# the "-tags daemon" part is temporary
|
|
|
|
test:
|
|
|
|
@go test -tags daemon -v $(shell go list ./... | grep -v /vendor/)
|
|
|
|
|
2017-04-25 12:57:06 -04:00
|
|
|
# build the CLI for multiple architectures
|
|
|
|
cross: clean
|
|
|
|
@gox -output build/docker-{{.OS}}-{{.Arch}} \
|
|
|
|
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64" \
|
|
|
|
./cmd/docker
|