-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 972 Bytes
/
Makefile
File metadata and controls
43 lines (34 loc) · 972 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
32
33
34
35
36
37
38
39
40
41
42
43
##
## EPITECH PROJECT, 2024
## zappy
## File description:
## Makefile
##
RED := \033[0;31m
GREEN := \033[0;32m
YELLOW := \033[1;33m
NC := \033[0m
all: zappy_server zappy_gui zappy_ai
zappy_ai:
@echo -e "$(GREEN)Building AI...$(NC)"
@rm -f zappy_ai && ln -s ai/main.py zappy_ai
zappy_server:
@echo -e "$(GREEN)Building server...$(NC)"
@cd server && mkdir -p ./build/
@cd server/build && cmake --log-level=ERROR ..
@cd server/build && make --silent && chmod +x zappy_server
@cd ../..
@mv server/build/zappy_server server/../zappy_server
zappy_gui:
@echo -e "$(GREEN)Building GUI...$(NC)"
@cd gui && mkdir -p ./build/
@cd gui/build && cmake --log-level=ERROR ..
@cd gui/build && make --silent && chmod +x zappy_gui
@cd ../..
@mv gui/build/zappy_gui gui/../zappy_gui
.PHONY: all zappy_gui zappy_server zappy_ai clean fclean re
clean:
@rm -rf server/build gui/build
fclean:
@rm -rf server/build gui/build zappy_server zappy_gui zappy_ai
re: fclean all