Skip to content
Permalink
Browse files

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: #4631
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
  • Loading branch information...
stefanmb authored and rvagg committed Jan 11, 2016
1 parent 8c694a6 commit 0fa4d90b9472b20b2af2a6851cbcb7ff79ccdb22
Showing with 5 additions and 0 deletions.
  1. +5 −0 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 $$?)

0 comments on commit 0fa4d90

Please sign in to comment.
You can’t perform that action at this time.