diff options
author | Oleg Efimov <efimovov@gmail.com> | 2010-10-29 17:07:27 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-01 19:57:27 +0300 |
commit | fac6db1b569793176daaea456571306031aa5fac (patch) | |
tree | 920d4b00afddbf4c6c36db2ac0f02620dbcb9af2 /Makefile | |
parent | 2b08bacd56c8bea73d80cc93e1ec2d21f7d59494 (diff) |
Add DESTDIR support to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -4,6 +4,7 @@ WANT_OPENSSL=1 PREFIX=/usr +DESTDIR= SHELL=/bin/sh INSTALL = install SCONS = python tools/scons/scons.py @@ -322,14 +323,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 $< $@ |