-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (30 loc) · 802 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
.PHONY: build build-frontend build-backend
build:
echo "Building..." && \
make -j 2 build-frontend build-backend && \
echo "Finished building"
start:
echo "Starting..." && \
make -j 2 start-frontend start-backend && \
echo "Finished starting"
build-frontend:
echo "Building frontend..." && \
cd ./frontend && \
npm ci && \
npm run build && \
echo "Finished building frontend"
build-backend:
echo "Building backend..." && \
cd ./backend && \
go build -o ./bin/go-todo && \
echo "Finished building backend"
start-frontend:
echo "Starting frontend..." && \
cd ./frontend && \
npm run preview && \
echo "Finished starting frontend" &
start-backend:
echo "Starting backend..." && \
cd ./backend && \
./bin/go-todo && \
echo "Finished starting backend" &