-
Notifications
You must be signed in to change notification settings - Fork 184
/
Makefile
51 lines (40 loc) · 1.16 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
47
48
49
50
SHELL := /bin/bash
cwd := $(shell pwd)
ui_path =${cwd}/cesi/ui
release: build-ui clean
@echo 'Releasing...'
tar -czvf ${cwd}/../cesi-extended.tar.gz .
build-ui: install-ui
@echo 'Building UI'
pushd ${ui_path}; \
yarn build; \
tar -czvf ${cwd}/../build-ui.tar.gz build; \
popd;
@echo 'Builded UI'
install-ui:
@echo 'Installing all dependecies of UI'
pushd ${ui_path}; \
yarn install; \
popd;
@echo 'Installed all dependecies of UI'
remove-ui-node-modules:
pushd ${ui_path}; \
rm -rf node_modules; \
popd;
remove-python-cache-files:
find . -type d -name '__pycache__' -exec rm -r {} +
remove-project-cache-files:
find . -type f -name '*.log' -exec rm {} +
find . -type f -name '*.db' -exec rm {} +
clean: remove-ui-node-modules remove-python-cache-files remove-project-cache-files
upgrade: upgrade-all-dependencies-of-ui upgrade-all-dependencies-of-py
upgrade-all-dependencies-of-ui:
@echo 'Upgrading all dependencies of UI'
pushd ${ui_path}; \
yarn upgrade --latest; \
popd;
@echo 'Upgraded all dependencies of UI'
upgrade-all-dependencies-of-py:
@echo 'Upgrading all dependencies of Python'
poetry update
@echo 'Upgraded all dependecies of Python'