From 3bb9058a5c314131374a4f357b8aafd4fd7ef023 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 If the VARIATION variable is present, then make binary will produce archives named node-$(FULLVERSION)-$(PLATFORM)-$(ARCH)-$(VARIATION). --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 94eb41995367ed..6839b63ef604b0 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 $$?)