summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Budeanu <stefan@budeanu.com>2016-01-11 14:54:33 -0500
committerJohan Bergström <bugs@bergstroem.nu>2016-01-21 16:28:23 +1100
commitbf1237921c0fe2951a18f9a7d6acbae75f6b8e43 (patch)
tree9d141381fe7a83cf8bd5824983d602f41dab1aa7 /Makefile
parent318ded2c4d5db23fadabfd0e78ee61f0bf60fa40 (diff)
downloadandroid-node-v8-bf1237921c0fe2951a18f9a7d6acbae75f6b8e43.tar.gz
android-node-v8-bf1237921c0fe2951a18f9a7d6acbae75f6b8e43.tar.bz2
android-node-v8-bf1237921c0fe2951a18f9a7d6acbae75f6b8e43.zip
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). PR-URL: https://github.com/nodejs/node/pull/4631 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c337f006fb..5bfb80119c 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 $$?)