-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (44 loc) · 1.1 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
##
## EPITECH PROJECT, 2023
## Makefile
## File description:
## Makefile
##
RULE = $(filter-out $@,$(MAKECMDGOALS))
LIBRARY_PATHS = ./libs
all: make_library server client
server:
@make -s -C server $(RULE)
@cp server/myteams_server .
client:
@make -s -C client $(RULE)
@cp client/myteams_cli .
clean: make_library clean_server clean_client
clean_server:
@make -s -C server clean
clean_client:
@make -s -C client clean
fclean: make_library clean
@make -s -C server fclean
@make -s -C client fclean
@rm -f myteams_server
@rm -f myteams_cli
re: fclean all
debug: make_library debug_server debug_client
debug_server:
@make -s -C server debug
@cp server/myteams_server .
debug_client:
@make -s -C client debug
@cp client/myteams_cli .
noice: noice_server noice_client
noice_server:
@make -s -C server noice
@cp server/myteams_server .
noice_client:
@make -s -C client noice
@cp client/myteams_cli .
make_library:
@make $(RULE) -s -C $(LIBRARY_PATHS)
.PHONY: all server client clean clean_server clean_client fclean re debug \
debug_server debug_client noice noice_server noice_client make_library