mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
print the location of the built binary
This commit is contained in:
parent
21f55419b7
commit
f961ec55e7
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -15,7 +15,8 @@ SRC_DIR := $(GOPATH)/src
|
|||
DOCKER_DIR := $(SRC_DIR)/$(DOCKER_PACKAGE)
|
||||
DOCKER_MAIN := $(DOCKER_DIR)/docker
|
||||
|
||||
DOCKER_BIN := $(CURDIR)/bin/docker
|
||||
DOCKER_BIN_RELATIVE := bin/docker
|
||||
DOCKER_BIN := $(CURDIR)/$(DOCKER_BIN_RELATIVE)
|
||||
|
||||
.PHONY: all clean test
|
||||
|
||||
|
@ -24,6 +25,7 @@ all: $(DOCKER_BIN)
|
|||
$(DOCKER_BIN): $(DOCKER_DIR)
|
||||
@mkdir -p $(dir $@)
|
||||
@(cd $(DOCKER_MAIN); go get $(GO_OPTIONS); go build $(GO_OPTIONS) -o $@)
|
||||
@echo $(DOCKER_BIN_RELATIVE) is created.
|
||||
|
||||
$(DOCKER_DIR):
|
||||
@mkdir -p $(dir $@)
|
||||
|
|
Loading…
Add table
Reference in a new issue