Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte-Thorben Bruns <skenqbx@googlemail.com>2012-04-22 00:40:48 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-04-23 03:52:26 +0400
commitea50ebd36da2da4a7a8b5fe6e0925ecd113c9d59 (patch)
tree605112c3cc3579faed8ba7a722db8daf8b6831e1 /Makefile
parente16021340dd38895b8c7f310355e3a79881f45ed (diff)
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 959896a7953..94b7eb9e952 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