From 55591c23f638dfef27604f3c523947c1530d459a Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 3 Nov 2020 10:53:27 +0300 Subject: [PATCH] remove hardcode --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 359326e..648d31e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -NAME = range-gen +NAME = $(shell basename $(shell readlink -e .)) VERSION = dev_$(shell date +%F_%T) GOCMD = go LDFLAGS := "$(LDFLAGS) -X 'main.Version=$(VERSION)'"