-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (40 loc) · 1.07 KB
/
Makefile
File metadata and controls
55 lines (40 loc) · 1.07 KB
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
51
52
53
54
55
PYTHON = python3
YARN = yarn
HOST = $(shell hostname)
FRONTEND_PORT = 8092
build-backend:
@echo "Build Backend"
cd backend && ${PYTHON} setup.py bdist_wheel
build-frontend: install-frontend
@echo "Build Frontend"
${YARN} build
build: build-backend build-frontend
@echo "Done."
install-backend:
@echo "Install Backend"
cd backend && pip install -e .
install-frontend:
@echo "Install Frontend"
${YARN} install
install: install-backend install-frontend
@echo "Done."
run-backend:
@echo "Run Backend"
${PYTHON} backend/sscAnnotat3D/app.py
run-frontend:
@echo "Run Frontend"
${YARN} start
clean-backend:
@echo "Uninstall Annotat3D"
pip uninstall sscAnnotat3D
@echo "Clean Backend"
rm -rf backend/build* backend/dist* backend/*.egg-info
find backend/sscAnnotat3D -iname *.so -exec rm {} \;
find backend/sscAnnotat3D -iname *.c -exec rm {} \;
find backend/sscAnnotat3D -iname *.cpp -exec rm {} \;
@echo "Done."
clean-frontend:
@echo "Clean Frontend"
rm -rf build node_modules package-lock.json yarn.lock
@echo "Done."
clean-all: clean-backend clean-frontend