mirror of https://github.com/vacp2p/zerokit.git
fix(makefile): include wasm-pack+node in installation (#240)
* fix(makefile): include wasm-pack in installation * fix: include node in installdeps * fix: install 18.20.2 node
This commit is contained in:
parent
a372053047
commit
d96eb59e92
12
Makefile
12
Makefile
|
@ -13,15 +13,19 @@ endif
|
||||||
|
|
||||||
installdeps: .pre-build
|
installdeps: .pre-build
|
||||||
ifeq ($(shell uname),Darwin)
|
ifeq ($(shell uname),Darwin)
|
||||||
# commented due to https://github.com/orgs/Homebrew/discussions/4612
|
# commented due to https://github.com/orgs/Homebrew/discussions/4612
|
||||||
# @brew update
|
# @brew update
|
||||||
@brew install cmake ninja
|
@brew install cmake ninja
|
||||||
else ifeq ($(shell uname),Linux)
|
else ifeq ($(shell uname),Linux)
|
||||||
@sudo apt-get update
|
@sudo apt-get update
|
||||||
@sudo apt-get install -y cmake ninja-build
|
@sudo apt-get install -y cmake ninja-build
|
||||||
endif
|
endif
|
||||||
@git clone --recursive https://github.com/WebAssembly/wabt.git
|
@git -C "wabt" pull || git clone --recursive https://github.com/WebAssembly/wabt.git "wabt"
|
||||||
@cd wabt && mkdir build && cd build && cmake .. -GNinja && ninja && sudo ninja install
|
@cd wabt && mkdir -p build && cd build && cmake .. -GNinja && ninja && sudo ninja install
|
||||||
|
@which wasm-pack || cargo install wasm-pack
|
||||||
|
# nvm already checks if it's installed, and no-ops if it is
|
||||||
|
@curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
|
@. ${HOME}/.nvm/nvm.sh && nvm install 18.20.2 && nvm use 18.20.2;
|
||||||
|
|
||||||
build: .pre-build
|
build: .pre-build
|
||||||
@cargo make build
|
@cargo make build
|
||||||
|
|
Loading…
Reference in New Issue