-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
50 lines (36 loc) · 832 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
LIBS_DIR = libs
DEPLOY_DIR = dist
BUILD_DIR = build
NPM = npm
WEBPACK = ./node_modules/.bin/webpack
LIBFLAC_DIR = node_modules/libflacjs/dist/min/
OLM_DIR = node_modules/olm
RNNOISE_WASM_DIR = node_modules/rnnoise-wasm/dist/
TFLITE_WASM = libs/vendor/tflite
MEET_MODELS_DIR = libs/vendor/models/
all: clean compile transpile deploy
clean:
rm -fr $(DEPLOY_DIR)
mkdir -p $(DEPLOY_DIR)/esm
cp -r dom $(DEPLOY_DIR)/esm
transpile:
npm run transpile
compile:
npm run build
deploy: deploy-rnnoise-binary deploy-olm deploy-tflite deploy-tflite-models
deploy-rnnoise-binary:
cp \
$(RNNOISE_WASM_DIR)/* \
$(DEPLOY_DIR)
deploy-olm:
cp \
$(OLM_DIR)/olm.wasm \
$(DEPLOY_DIR)
deploy-tflite:
cp \
$(TFLITE_WASM)/*.wasm \
$(DEPLOY_DIR)
deploy-tflite-models:
cp \
$(MEET_MODELS_DIR)/*.tflite \
$(DEPLOY_DIR)