-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 883 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
##
## EPITECH PROJECT, 2018
## NAVY MAKEFILE
## File description:
## ROOT MAKEFILE
##
NAME = navy
GCV = gcovr
GCVNAME = coverage.html
GCVFLAGS = --html --html-details
GCVEXCLUDE = --exclude tests/
$(NAME):
@make -C ./lib/my/ --no-print-directory
@make -C ./sources --no-print-directory
all: $(NAME)
tests_run:
@make -C ./tests --no-print-directory
@echo -e "\n\n\n"
@$(GCV) $(GCVEXCLUDE)
@$(GCV) -r . $(GCVFLAGS) -o $(GCVNAME) $(GCVEXCLUDE)
@echo -e "\n\n\n"
clean:
@make clean -C ./lib/my/ --no-print-directory
@make clean -C ./sources/ --no-print-directory
@make clean -C ./tests/ --no-print-directory
@rm -f *.html
@rm -f vgcore*
fclean: clean
@make fclean -C ./lib/my/ --no-print-directory
@make fclean -C ./sources/ --no-print-directory
@make fclean -C ./tests/ --no-print-directory
@rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re