-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·50 lines (41 loc) · 1.68 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: monoue <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/11/30 15:33:41 by monoue #+# #+# #
# Updated: 2021/03/29 09:29:14 by monoue ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
# PATH
PUSH_SWAP_PATH = ./src/swapper/
CHECKER_PATH = ./src/checker/
BONUS_PUSH_SWAP_PATH = ./bonus/swapper/
BONUS_CHECKER_PATH = ./bonus/checker/
$(NAME):
make -C $(PUSH_SWAP_PATH)
cp $(PUSH_SWAP_PATH)push_swap .
make -C $(CHECKER_PATH)
cp $(CHECKER_PATH)checker .
bonus:
make -C $(BONUS_PUSH_SWAP_PATH)
cp $(BONUS_PUSH_SWAP_PATH)push_swap .
make -C $(BONUS_CHECKER_PATH)
cp $(BONUS_CHECKER_PATH)checker .
all: $(NAME)
clean:
make -C $(PUSH_SWAP_PATH) clean
make -C $(CHECKER_PATH) clean
make -C $(BONUS_PUSH_SWAP_PATH) clean
make -C $(BONUS_CHECKER_PATH) clean
fclean: clean
make -C $(PUSH_SWAP_PATH) fclean
make -C $(CHECKER_PATH) fclean
make -C $(BONUS_PUSH_SWAP_PATH) fclean
make -C $(BONUS_CHECKER_PATH) fclean
$(RM) push_swap checker
re: fclean all
.PHONY: all clean fclean re bonus