mirror of
https://github.com/docker/compose.git
synced 2025-07-06 21:34:25 +02:00
Merge pull request #1334 from gtardif/make_install
Add make install to symlink cli from `make cli`
This commit is contained in:
commit
9dba841611
4
Makefile
4
Makefile
@ -22,6 +22,7 @@ ifeq ($(UNAME_S),Darwin)
|
|||||||
MOBY_DOCKER=/Applications/Docker.app/Contents/Resources/bin/docker
|
MOBY_DOCKER=/Applications/Docker.app/Contents/Resources/bin/docker
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
BINARY_FOLDER=$(shell pwd)/bin
|
||||||
GIT_TAG?=$(shell git describe --tags --match "v[0-9]*")
|
GIT_TAG?=$(shell git describe --tags --match "v[0-9]*")
|
||||||
TEST_FLAGS?=
|
TEST_FLAGS?=
|
||||||
E2E_TEST?=
|
E2E_TEST?=
|
||||||
@ -92,6 +93,9 @@ serve: cli ## start server
|
|||||||
moby-cli-link: ## Create com.docker.cli symlink if does not already exist
|
moby-cli-link: ## Create com.docker.cli symlink if does not already exist
|
||||||
ln -s $(MOBY_DOCKER) /usr/local/bin/com.docker.cli
|
ln -s $(MOBY_DOCKER) /usr/local/bin/com.docker.cli
|
||||||
|
|
||||||
|
install: ## Link /usr/local/bin/ to current binary
|
||||||
|
ln -fs $(BINARY_FOLDER)/docker /usr/local/bin/docker
|
||||||
|
|
||||||
validate-headers: ## Check license header for all files
|
validate-headers: ## Check license header for all files
|
||||||
@docker build . --target check-license-headers
|
@docker build . --target check-license-headers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user