forked from TrueCloudLab/frostfs-http-gw
[#159] Add docker/all target
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
40e86fbfd6
commit
6684ea1e3a
1 changed files with 10 additions and 1 deletions
11
Makefile
11
Makefile
|
@ -14,11 +14,20 @@ BINDIR = bin
|
|||
DIRS = $(BINDIR)
|
||||
BINS = $(BINDIR)/neofs-http-gw
|
||||
|
||||
.PHONY: all $(BINS) $(DIRS) docker/$(BINS) dep test cover fmt image image-push dirty-image lint docker/lint version clean
|
||||
.PHONY: all docker/all $(BINS) $(DIRS) docker/$(BINS) dep test cover fmt image image-push dirty-image lint docker/lint version clean
|
||||
|
||||
# Make all binaries
|
||||
all: $(BINS)
|
||||
|
||||
docker/all:
|
||||
@echo "=> Building binary using clean Docker environment"
|
||||
@docker run --rm -t \
|
||||
-v `pwd`:/src \
|
||||
-w /src \
|
||||
-u "$$(id -u):$$(id -g)" \
|
||||
--env HOME=/src \
|
||||
golang:$(GO_VERSION) make all
|
||||
|
||||
$(BINS): $(DIRS) dep
|
||||
@echo "⇒ Build $@"
|
||||
CGO_ENABLED=0 \
|
||||
|
|
Loading…
Reference in a new issue