This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Makefile: properly set the ARCH variable when forcing a DESTCPU

  • Loading branch information...
1 parent dc9ae01 commit 8b11f29cf3881cdc0e1e1a553c543f561128daed @TooTallNate TooTallNate committed Aug 4, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 Makefile
View
@@ -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)

0 comments on commit 8b11f29

Please sign in to comment.