Skip to content

Commit 0fa4d90

Browse files
stefanmbrvagg
authored andcommitted
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>
1 parent 8c694a6 commit 0fa4d90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,12 @@ endif
294294

295295
TARNAME=node-$(FULLVERSION)
296296
TARBALL=$(TARNAME).tar
297+
# Custom user-specified variation, use it directly
298+
ifdef VARIATION
299+
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)-$(VARIATION)
300+
else
297301
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)
302+
endif
298303
BINARYTAR=$(BINARYNAME).tar
299304
# OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/
300305
XZ=$(shell which xz > /dev/null 2>&1; echo $$?)

0 commit comments

Comments
 (0)