x
This commit is contained in:
16
Makefile
16
Makefile
@ -4,35 +4,29 @@ all: install check build
|
||||
|
||||
# INSTALL
|
||||
|
||||
```:
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
||||
export WINDOWS := true
|
||||
|
||||
ifndef MSYSTEM
|
||||
|
||||
export POWERSHELL := true
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
```:
|
||||
|
||||
```:
|
||||
ifdef WINDOWS
|
||||
|
||||
CARGO ?= $(USERPROFILE)/.cargo/bin/cargo.exe
|
||||
|
||||
WASM_PACK ?= $(USERPROFILE)/.cargo/bin/wasm-pack.exe
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user