2017-04-25 19:57:06 +03:00
|
|
|
#
|
|
|
|
# github.com/docker/cli
|
|
|
|
#
|
|
|
|
|
2017-05-02 22:10:03 +03:00
|
|
|
.PHONY: build clean cross test lint
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
# build the CLI
|
|
|
|
build: clean
|
2017-04-28 00:55:05 +03:00
|
|
|
@go build -o ./build/docker github.com/docker/cli/cmd/docker
|
2017-04-25 19:57:06 +03:00
|
|
|
|
|
|
|
# remove build artifacts
|
|
|
|
clean:
|
|
|
|
@rm -rf ./build
|
|
|
|
|
2017-04-28 01:57:35 +03:00
|
|
|
# run go test
|
|
|
|
# the "-tags daemon" part is temporary
|
|
|
|
test:
|
|
|
|
@go test -tags daemon -v $(shell go list ./... | grep -v /vendor/)
|
|
|
|
|
2017-05-02 22:10:03 +03:00
|
|
|
lint:
|
|
|
|
@gometalinter --config gometalinter.json ./...
|
|
|
|
|
2017-04-25 19:57:06 +03:00
|
|
|
# build the CLI for multiple architectures
|
|
|
|
cross: clean
|
|
|
|
@gox -output build/docker-{{.OS}}-{{.Arch}} \
|
|
|
|
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64" \
|
2017-04-28 00:55:05 +03:00
|
|
|
github.com/docker/cli/cmd/docker
|