Skip to content

Instantly share code, notes, and snippets.

@Sannis
Created October 30, 2010 11:41
Show Gist options
  • Save Sannis/655226 to your computer and use it in GitHub Desktop.
Save Sannis/655226 to your computer and use it in GitHub Desktop.
Node.js patch: Add-node-headers-installation.patch
From c980b2e11f5a477b63fc797e4ebf37b4a19c876c Mon Sep 17 00:00:00 2001
From: Oleg Efimov <[email protected]>
Date: Fri, 29 Oct 2010 18:10:37 +0400
Subject: [PATCH 2/2] Add node headers installation
---
Makefile | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 67b5026..d20467c 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,22 @@ node_sources = src/node.cc \
src/node_timer.cc \
src/node_javascript.cc \
+node_install_includes = src/node.h \
+ src/node_object_wrap.h \
+ src/node_buffer.h \
+ src/node_events.h \
+ src/node_version.h \
+ deps/libeio/eio.h \
+ deps/libev/ev.h \
+ deps/v8/include/*.h \
+
+ifdef DEBUG
+node_install_includes += $(builddir)/debug/src/node_config.h
+else
+node_install_includes += $(builddir)/release/src/node_config.h
+endif
+
+
node_debug_objects = $(addprefix $(builddir)/debug/,$(node_sources:.cc=.o))
node_release_objects = $(addprefix $(builddir)/release/,$(node_sources:.cc=.o))
@@ -316,6 +332,8 @@ $(builddir)/debug/src/node.o: $(builddir)/debug/src/node_config.h
install: all
$(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/bin'
$(INSTALL) $(builddir)/node '$(DESTDIR)$(PREFIX)/bin'
+ $(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/include/node'
+ $(INSTALL) $(node_install_includes) '$(DESTDIR)$(PREFIX)/include/node'
$(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'
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment