-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (38 loc) · 920 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##
## EPITECH PROJECT, 2024
## Zappy
## File description:
## Makefile
##
MODULES := gui server ai
all: zappy_gui zappy_server zappy_ai
zappy_%:
@make -C $*
clean:
$(foreach M,$(MODULES), make -C $M $@;)
docs-clean:
$(RM) -r doc/ai doc/gui doc/server
fclean: clean docs-clean
$(foreach M,$(MODULES), make -C $M $@;)
re: fclean all
bonus: re
$(MAKE) -C server/dashboard
docs: docs-clean
$(MAKE) -C gui docs
$(MAKE) -C server docs
cargo doc --no-deps -p ai -p zappy-json -p zappy-macros
cp -r target/doc doc/ai
tests_run: fclean
$(MAKE) -C server unit_tests
$(MAKE) -C server/core unit_tests
$(MAKE) -C server/lib unit_tests
./server/unit_tests
./server/core/unit_tests
./server/lib/unit_tests
cargo +stable install cargo-llvm-cov --locked
cargo llvm-cov --no-report
# $(MAKE) coverage
coverage:
$(MAKE) -C server coverage
cargo llvm-cov report --open
.PHONY: clean fclean re tests_run docs