-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
84 lines (70 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: all
all: build
.PHONY: build
build:
cd ./configure && make || true && cd ..
cd ./labindex && make || true && cd ..
cd ./victim && make || true && cd ..
cd ./lab01/server && make || true && cd ..
cd ./lab01/client && make || true && cd ..
cd ./lab02/server && make || true && cd ..
cd ./lab02/client && make || true && cd ..
cd ./lab03/server && make || true && cd ..
cd ./lab03/client && make || true && cd ..
cd ./lab04/server && make || true && cd ..
cd ./lab04/client && make || true && cd ..
cd ./lab05/server && make || true && cd ..
cd ./lab05/client && make || true && cd ..
.PHONY: lint
lint:
cd ./oalib && make lint || true && cd ..
cd ./labindex && make lint || true && cd ..
cd ./victim && make lint || true && cd ..
cd ./lab01/server && make lint || true && cd ..
cd ./lab01/client && make lint || true && cd ..
cd ./lab02/server && make lint || true && cd ..
cd ./lab02/client && make lint || true && cd ..
cd ./lab03/server && make lint || true && cd ..
cd ./lab03/client && make lint || true && cd ..
cd ./lab04/server && make lint || true && cd ..
cd ./lab04/client && make lint || true && cd ..
cd ./lab05/server && make lint || true && cd ..
cd ./lab05/client && make lint || true && cd ..
.PHONY: docker
docker:
docker compose -f ./docker-compose.yaml build --parallel
.PHONY: labs
labs:
docker compose -f ./docker-compose.yaml up -d
.PHONY: lab01
lab01:
docker compose -f ./docker-compose.yaml up -d server-01 client-01
.PHONY: lab02
lab02:
docker compose -f ./docker-compose.yaml up -d server-02 client-02
.PHONY: lab03
lab03:
docker compose -f ./docker-compose.yaml up -d server-03 client-03
.PHONY: lab04
lab04:
docker compose -f ./docker-compose.yaml up -d server-04 client-04
.PHONY: lab05
lab05:
docker compose -f ./docker-compose.yaml up -d server-05 client-05
.PHONY: labsdown
labsdown:
docker compose -f ./docker-compose.yaml down -v
.PHONY: devup
devup:
docker compose -f ./docker-compose.dev.yaml up -d
.PHONY: devdown
devdown:
docker compose -f ./docker-compose.dev.yaml down -v
.PHONY: config
config:
cd ./configure && make && cd ..
./configure/bin/configure
.PHONY: configure
configure:
cd ./configure && make && cd ..
./configure/bin/configure