Skip to content

Commit 7fbdd4b

Browse files
Edit Makefile so package names include OTP version
Added OTP_VER to initial variables so that it can be included in the PKG_ID variable and thus the binary file name
1 parent dbd9d09 commit 7fbdd4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PKG_REVISION ?= $(shell git describe --tags 2>/dev/null)
44
PKG_BUILD = 1
55
BASE_DIR = $(shell pwd)
66
ERLANG_BIN = $(shell dirname $(shell which erl 2>/dev/null) 2>/dev/null)
7+
OTP_VER = $(shell echo $(ERLANG_BIN) | rev | cut -d "/" -f 2 | rev)
78
REBAR ?= $(BASE_DIR)/rebar3
89
OVERLAY_VARS ?=
910
TEST_IGNORE ?= lager riak basho_bench
@@ -219,7 +220,7 @@ MAJOR_VERSION ?= $(shell echo $(REVISION) | sed -e 's/\([0-9.]*\)-.*/\1/')
219220
# This enables the toplevel repository package to change names
220221
# when underlying dependencies change.
221222
NAME_HASH = $(shell git hash-object distdir/$(CLONEDIR)/$(MANIFEST_FILE) 2>/dev/null | cut -c 1-8)
222-
PKG_ID := $(REPO_TAG)
223+
PKG_ID := "$(REPO_TAG)_OTP_$(OTP_VER)"
223224

224225
##
225226
## Packaging targets

0 commit comments

Comments
 (0)