summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMalte-Thorben Bruns <skenqbx@googlemail.com>2012-04-21 22:40:48 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-04-23 01:52:26 +0200
commitea50ebd36da2da4a7a8b5fe6e0925ecd113c9d59 (patch)
tree605112c3cc3579faed8ba7a722db8daf8b6831e1 /Makefile
parente16021340dd38895b8c7f310355e3a79881f45ed (diff)
downloadnodejs-ea50ebd36da2da4a7a8b5fe6e0925ecd113c9d59.tar.gz
nodejs-ea50ebd36da2da4a7a8b5fe6e0925ecd113c9d59.tar.bz2
nodejs-ea50ebd36da2da4a7a8b5fe6e0925ecd113c9d59.zip
build: support make install "DESTDIR=/path"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 959896a79..94b7eb9e9 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
BUILDTYPE ?= Release
PYTHON ?= python
+DESTDIR ?=
# BUILDTYPE=Debug builds both release and debug builds. If you want to compile
# just the debug build, run `make -C out BUILDTYPE=Debug` instead.
@@ -33,7 +34,7 @@ out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/z
tools/gyp_node -f make
install: all
- out/Release/node tools/installer.js install
+ out/Release/node tools/installer.js install $(DESTDIR)
uninstall:
out/Release/node tools/installer.js uninstall