x
This commit is contained in:
22
Makefile
22
Makefile
@ -2,8 +2,8 @@
|
||||
.PHONY: all
|
||||
|
||||
all: install check build
|
||||
|
||||
# ```
|
||||
```
|
||||
``` :
|
||||
|
||||
|
||||
# INSTALL
|
||||
@ -15,7 +15,8 @@ ifeq ($(OS),Windows_NT)
|
||||
export POWERSHELL := true
|
||||
endif
|
||||
endif
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
``` :
|
||||
ifdef WINDOWS
|
||||
@ -25,23 +26,27 @@ else
|
||||
CARGO ?= $(shell which cargo || echo ~/.cargo/bin/cargo)
|
||||
WASM_PACK ?= $(shell which wasm-pack || echo ~/.cargo/bin/wasm-pack)
|
||||
endif
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
``` :
|
||||
.PHONY: install
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
### Install dependencies
|
||||
|
||||
``` :
|
||||
install: node_modules/.package-lock.json $(CARGO) $(WASM_PACK)
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
``` :
|
||||
node_modules/.package-lock.json: package.json package-lock.json
|
||||
npm prune
|
||||
npm install
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
``` :
|
||||
$(CARGO):
|
||||
@ -50,7 +55,8 @@ ifdef WINDOWS
|
||||
else
|
||||
npm run install:rust
|
||||
endif
|
||||
``` :
|
||||
```
|
||||
```` :
|
||||
|
||||
``` :
|
||||
$(WASM_PACK):
|
||||
|
||||
Reference in New Issue
Block a user