Skip to content

Commit bf12379

Browse files
stefanmbjbergstroem
authored andcommittedJan 21, 2016
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent 318ded2 commit bf12379

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎Makefile

+5
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)
Please sign in to comment.