Update examples for Rust master

This commit is contained in:
Alex Crichton
2015-05-19 09:41:22 -07:00
parent aece96458f
commit 640bfb9da8
9 changed files with 26 additions and 19 deletions

View File

@@ -4,12 +4,11 @@ else
EXT := so
endif
all: target/libdouble_input.$(EXT) node_modules/ffi
all: target/debug/libdouble_input.$(EXT) node_modules/ffi
node src/main.js
target/libdouble_input.$(EXT): src/lib.rs Cargo.toml
target/debug/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