forked from leolani/cltl-chat-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
46 lines (35 loc) · 1.18 KB
/
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
SHELL = /bin/bash
project_dependencies ?= $(addprefix $(project_root)/, \
emissor \
cltl-combot \
cltl-requirements \
cltl-backend \
cltl-vad \
cltl-asr \
cltl-emissor-data \
cltl-eliza \
spot_dialogmanagement \
spot_disambiguation_model \
cltl-chat-ui)
git_remote ?= https://github.com/leolani
chat_bubble_version = 1.5.0
chat_bubble = https://github.com/dmitrizzle/chat-bubble/archive/refs/tags/v$(chat_bubble_version).tar.gz
include util/make/makefile.base.mk
include util/make/makefile.py.base.mk
include util/make/makefile.git.mk
include util/make/makefile.component.mk
clean: py-clean
rm -rf src/spot_service/chatui/static/chat-bubble
rm -rf spacy.lock
build: src/spot_service/chatui/static/chat-bubble py-install spacy.lock
spacy.lock: | venv
source venv/bin/activate; \
python -m spacy download nl_core_news_lg; \
deactivate
touch spacy.lock
src/spot_service/chatui/static/chat-bubble:
$(info Download $(chat_bubble))
@mkdir src/spot_service/chatui/static/chat-bubble
@wget -qO- $(chat_bubble) | \
tar -xvzf - -C src/spot_service/chatui/static/chat-bubble --strip-components 1 \
chat-bubble-$(chat_bubble_version)/component