-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 1007 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 1007 Bytes
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
setup: setup-backend setup-client setup-core setup-common
run:
@echo "Starting development environment..."
@./scripts/devrun.sh
stop:
@echo "Stopping development environment..."
@./scripts/devstop.sh
setup-backend:
@echo "Installing backend dependencies..."
cd backend && npm install || (echo "Backend setup failed"; exit 1)
setup-client:
@echo "Installing client dependencies..."
cd client && npm install || (echo "Backend setup failed"; exit 1)
@echo "Building client..."
cd client && npm run build || (echo "Backend setup failed"; exit 1)
setup-core:
@echo "Installing core dependencies..."
cd core && pip install -r requirements.txt || (echo "Backend setup failed"; exit 1)
setup-common:
@if [ ! -x ./scripts/devrun.sh ]; then chmod +x ./scripts/devrun.sh; fi
@if [ ! -x ./scripts/devstop.sh ]; then chmod +x ./scripts/devstop.sh; fi
@if [ ! -f .env ]; then cp .env.example .env; fi
.PHONY: setup setup-backend setup-client setup-core setup-common run stop
.DEFAULT_GOAL := setup