summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-08-04 12:39:54 -0700
committerNathan Rajlich <nathan@tootallnate.net>2012-08-06 11:40:44 -0700
commit8b11f29cf3881cdc0e1e1a553c543f561128daed (patch)
tree3ca1876445a9190e541ffe00f9f369b312d03a0e /Makefile
parentdc9ae01ef7a6fcafd82b306d80b9f715d72ed670 (diff)
downloadandroid-node-v8-8b11f29cf3881cdc0e1e1a553c543f561128daed.tar.gz
android-node-v8-8b11f29cf3881cdc0e1e1a553c543f561128daed.tar.bz2
android-node-v8-8b11f29cf3881cdc0e1e1a553c543f561128daed.zip
Makefile: properly set the ARCH variable when forcing a DESTCPU
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 004d074f42..da07637813 100644
--- a/Makefile
+++ b/Makefile
@@ -193,7 +193,15 @@ docclean:
VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
+ifeq ($(DESTCPU),x64)
+ARCH=x86_64
+else
+ifeq ($(DESTCPU),ia32)
+ARCH=i386
+else
ARCH=$(shell uname -m)
+endif
+endif
TARNAME=node-$(VERSION)
TARBALL=$(TARNAME).tar.gz
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)