Created
October 30, 2010 11:39
-
-
Save Sannis/655225 to your computer and use it in GitHub Desktop.
Node.js patch: Add-DESTDIR-support-to-Makefile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 39538a7584f87ad204bdbb57592d8235b568f032 Mon Sep 17 00:00:00 2001 | |
From: Oleg Efimov <[email protected]> | |
Date: Fri, 29 Oct 2010 17:07:27 +0400 | |
Subject: [PATCH 1/2] Add DESTDIR support to Makefile | |
--- | |
Makefile | 17 +++++++++-------- | |
1 files changed, 9 insertions(+), 8 deletions(-) | |
diff --git a/Makefile b/Makefile | |
index dcd1b13..67b5026 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -4,6 +4,7 @@ | |
WANT_OPENSSL=1 | |
PREFIX=/usr | |
+DESTDIR= | |
SHELL=/bin/sh | |
INSTALL = install | |
SCONS = python tools/scons/scons.py | |
@@ -313,14 +314,14 @@ $(builddir)/debug/src/node.o: $(builddir)/debug/src/node_config.h | |
# TODO install libs | |
#install: all doc | |
install: all | |
- $(INSTALL) -d -m 755 '$(PREFIX)/bin' | |
- $(INSTALL) $(builddir)/node '$(PREFIX)/bin' | |
- $(INSTALL) -d -m 755 '$(PREFIX)/share/man/man1/' | |
- $(INSTALL) -d -m 755 '$(PREFIX)/lib/node/wafadmin/Tools' | |
- $(INSTALL) tools/wafadmin/*.py '$(PREFIX)/lib/node/wafadmin' | |
- $(INSTALL) tools/wafadmin/Tools/*.py '$(PREFIX)/lib/node/wafadmin/Tools' | |
- $(INSTALL) tools/node-waf '$(PREFIX)/bin' | |
-# $(INSTALL) doc/node.1 '$(PREFIX)/share/man/man1/' | |
+ $(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/bin' | |
+ $(INSTALL) $(builddir)/node '$(DESTDIR)$(PREFIX)/bin' | |
+ $(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/share/man/man1/' | |
+ $(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/lib/node/wafadmin/Tools' | |
+ $(INSTALL) tools/wafadmin/*.py '$(DESTDIR)$(PREFIX)/lib/node/wafadmin' | |
+ $(INSTALL) tools/wafadmin/Tools/*.py '$(DESTDIR)$(PREFIX)/lib/node/wafadmin/Tools' | |
+ $(INSTALL) tools/node-waf '$(DESTDIR)$(PREFIX)/bin' | |
+# $(INSTALL) doc/node.1 '$(DESTDIR)$(PREFIX)/share/man/man1/' | |
libnode-static: $(builddir)/libnode.a | |
ln -fs $< $@ | |
-- | |
1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment