From 24222d66caa8ddc7a2af1b8486766a9dc8ab737f Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Tue, 15 Dec 2020 13:50:54 +0300 Subject: [PATCH] fix version file path (#212) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 507ab65..80d7a86 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -FILE = $(TRAVIS_BUILD_DIR)/VERSION -VERSION = `cat $(FILE)` +ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) +VERSION = `cat $(ROOT_DIR)/VERSION` ARCHIVE_NAME = '/tmp/retailcrm-'$(VERSION)'.ocmod.zip' .PHONY: coverage