-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (49 loc) · 1.85 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aitoraudicana <aitoraudicana@student.42 +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/07/29 17:49:21 by aitoraudica #+# #+# #
# Updated: 2022/07/29 17:55:51 by aitoraudica ### ########.fr #
# #
# **************************************************************************** #
#Variables
NAME := push_swap
PUSH_SWAP_DIR := srcs/mandatory/
CHECKER_DIR := srcs/checker/
# Colors
DEF_COLOR = \033[0;39m
GRAY = \033[0;90m
RED = \033[0;91m
GREEN = \033[0;92m
YELLOW = \033[0;93m
BLUE = \033[0;94m
MAGENTA = \033[0;95m
CYAN = \033[0;96m
WHITE = \033[0;97m
all:
@echo " "
@echo "$(BLUE)Launchig push_swap Makefile...$(DEF_COLOR)"
@rm -f push_swap
@make -C $(PUSH_SWAP_DIR)
@cp $(PUSH_SWAP_DIR)push_swap push_swap
@echo "$(BLUE)Launchig checker Makefile...$(DEF_COLOR)"
@rm -f my_checker
@make -C $(CHECKER_DIR)
@cp $(CHECKER_DIR)my_checker my_checker
clean:
rm -f push_swap
@make clean -sC $(PUSH_SWAP_DIR)
@make clean -sC $(CHECKER_DIR)
fclean:
rm -f push_swap
@make fclean -sC $(PUSH_SWAP_DIR)
@make fclean -sC $(CHECKER_DIR)
re: fclean
@$(MAKE)
@echo "$(GREEN)Cleaned and rebuilt everything for push_swap/checker!$(DEF_COLOR)"
norm:
@norminette $(SRC) $(INCLUDE) | grep -v Norme -B1 || true
.PHONY: all clean fclean re norm