Browse Source

Makefile: properly set the ARCH variable when forcing a DESTCPU

v0.8.7-release
Nathan Rajlich 13 years ago
parent
commit
8b11f29cf3
  1. 8
      Makefile

8
Makefile

@ -193,7 +193,15 @@ docclean:
VERSION=v$(shell $(PYTHON) tools/getnodeversion.py) VERSION=v$(shell $(PYTHON) tools/getnodeversion.py)
PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]') PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]')
ifeq ($(DESTCPU),x64)
ARCH=x86_64
else
ifeq ($(DESTCPU),ia32)
ARCH=i386
else
ARCH=$(shell uname -m) ARCH=$(shell uname -m)
endif
endif
TARNAME=node-$(VERSION) TARNAME=node-$(VERSION)
TARBALL=$(TARNAME).tar.gz TARBALL=$(TARNAME).tar.gz
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH) BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)

Loading…
Cancel
Save