From f3dd795ea7c1593e079c68f0424665a7a3e7b42b Mon Sep 17 00:00:00 2001 From: George Miroshnykov Date: Fri, 24 Apr 2015 21:34:59 +0300 Subject: [PATCH] node: explicitly install ffi module via npm --- node-to-rust/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node-to-rust/Makefile b/node-to-rust/Makefile index e6af8a5..76eba3e 100644 --- a/node-to-rust/Makefile +++ b/node-to-rust/Makefile @@ -4,12 +4,16 @@ else EXT := so endif -all: target/libdouble_input.$(EXT) +all: target/libdouble_input.$(EXT) node_modules/ffi node src/main.js target/libdouble_input.$(EXT): src/lib.rs Cargo.toml cargo build (cd target && ln -nsf debug/libdouble_input-*$(EXT) libdouble_input.$(EXT)) +node_modules/ffi: + npm install ffi + clean: rm -rf target + rm -rf node_modules