Files
docker-cli/components/cli/Makefile
Gaetan de Villele 2c780f4003 add Makefiles and document their use in the README
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
Upstream-commit: fb413981d3
Component: cli
2017-04-25 09:57:06 -07:00

20 lines
362 B
Makefile

#
# 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
# 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