Files
docker-cli/components/cli/Makefile
Gaetan de Villele dfb4d9262a define targets as “phony”, add comments, and mount docker.sock in dev target
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: 7f7e842702
Component: cli
2017-05-03 11:14:06 -07:00

29 lines
609 B
Makefile

#
# github.com/docker/cli
#
.PHONY: build clean test lint cross
# build the CLI
build: clean
@go build -o ./build/docker github.com/docker/cli/cmd/docker
# remove build artifacts
clean:
@rm -rf ./build
# run go test
# the "-tags daemon" part is temporary
test:
@go test -tags daemon -v $(shell go list ./... | grep -v /vendor/)
# run linters
lint:
@gometalinter --config gometalinter.json ./...
# build the CLI for multiple architectures
cross: clean
@gox -output build/docker-{{.OS}}-{{.Arch}} \
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64" \
github.com/docker/cli/cmd/docker