From 0fa4d90b9472b20b2af2a6851cbcb7ff79ccdb22 Mon Sep 17 00:00:00 2001 From: Stefan Budeanu Date: Mon, 11 Jan 2016 14:54:33 -0500 Subject: [PATCH] build: Add VARIATION variable to binary target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the VARIATION variable is present, then make binary will produce archives named node-$(FULLVERSION)-$(PLATFORM)-$(ARCH)-$(VARIATION). PR-URL: https://github.com/nodejs/node/pull/4631 Reviewed-By: Johan Bergström Reviewed-By: James M Snell Reviewed-By: Rod Vagg --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index c337f006fb6f63..5bfb80119c3951 100644 --- a/Makefile +++ b/Makefile @@ -294,7 +294,12 @@ endif TARNAME=node-$(FULLVERSION) TARBALL=$(TARNAME).tar +# Custom user-specified variation, use it directly +ifdef VARIATION +BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)-$(VARIATION) +else BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH) +endif BINARYTAR=$(BINARYNAME).tar # OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/ XZ=$(shell which xz > /dev/null 2>&1; echo $$?)