forked from gamegos/cesi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 799 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
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 dependecies for UI'
pushd ${ui_path}; \
yarn install; \
popd;
@echo 'Installed dependecies for 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