add npm install to emscripten Makefile

pull/25/head
Jan Pochyla 9 years ago committed by Pavol Rusnak
parent 3f4e50ba22
commit da0a2f8662
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -7,11 +7,14 @@ EMFLAGS = \
SRC = ../bignum.c ../ecdsa.c ../secp256k1.c ../hmac.c ../bip32.c \
../base58.c ../ripemd160.c ../sha2.c ../rand.c
test: trezor-crypto.js
test: node_modules trezor-crypto.js
node test.js
trezor-crypto.js: $(SRC)
emcc $(EMFLAGS) -o $@ $^
node_modules:
npm install
clean:
rm -f trezor-crypto.js

Loading…
Cancel
Save