From 5b275bad18d97e13ba5fe7521fc3cc01c2d14cb5 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 19 May 2021 13:22:39 +0300 Subject: [PATCH] [#46] *: Reorganize variables and rename binary file in Makefile Fix variables for docker, sorted variables' blocks Rename binary from authmate to neofs-authmate Signed-off-by: Angira Kekteeva --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 064fb54..7fa7d64 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,20 @@ #!/usr/bin/make -f +# Common variables REPO ?= $(shell go list -m) VERSION ?= "$(shell git describe --tags 2>/dev/null || git rev-parse --short HEAD | sed 's/^v//')" - -BIN_NAME=neofs-s3-gw -HUB_IMAGE="nspccdev/$(BIN_NAME)" -HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')" BINDIR = bin + +# s3 gate variables +BIN_NAME=neofs-s3-gw BIN = "$(BINDIR)/$(BIN_NAME)" -AUTHMATE_BIN_NAME=authmate -AUTHMATE_HUB_IMAGE="nspccdev/$(AUTHMATE_BIN_NAME)" -AUTHMATE_HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')" +# Variables for docker +HUB_IMAGE ?= "nspccdev/$(BIN_NAME)" +HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')" + +#authmate variables +AUTHMATE_BIN_NAME=neofs-authmate AUTHMATE_BIN = "$(BINDIR)/$(AUTHMATE_BIN_NAME)" .PHONY: help all dep clean format test cover lint docker/lint image-push image dirty-image