Browse code

print the location of the built binary

Mikhail Sobolev authored on 2013/03/26 23:30:01
Showing 1 changed files
... ...
@@ -15,7 +15,8 @@ SRC_DIR := $(GOPATH)/src
15 15
 DOCKER_DIR := $(SRC_DIR)/$(DOCKER_PACKAGE)
16 16
 DOCKER_MAIN := $(DOCKER_DIR)/docker
17 17
 
18
-DOCKER_BIN := $(CURDIR)/bin/docker
18
+DOCKER_BIN_RELATIVE := bin/docker
19
+DOCKER_BIN := $(CURDIR)/$(DOCKER_BIN_RELATIVE)
19 20
 
20 21
 .PHONY: all clean test
21 22
 
... ...
@@ -24,6 +25,7 @@ all: $(DOCKER_BIN)
24 24
 $(DOCKER_BIN): $(DOCKER_DIR)
25 25
 	@mkdir -p  $(dir $@)
26 26
 	@(cd $(DOCKER_MAIN); go get $(GO_OPTIONS); go build $(GO_OPTIONS) -o $@)
27
+	@echo $(DOCKER_BIN_RELATIVE) is created.
27 28
 
28 29
 $(DOCKER_DIR):
29 30
 	@mkdir -p $(dir $@)