-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (36 loc) · 1.41 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: akupriia <akupriia@student.unit.ua> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/09/23 21:22:13 by akupriia #+# #+# #
# Updated: 2018/09/23 22:02:09 by akupriia ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all clean fclean re mre
CH := checker
PS := push_swap
CH_PATH := src/checker/
PS_PATH := src/push_swap/
all:
@ make -C $(CH_PATH)
@ make -C $(PS_PATH)
@ ln -fs $(CH_PATH)$(CH) $(CH)
@ ln -fs $(PS_PATH)$(PS) $(PS)
@ chmod 744 $(CH) $(PS)
mre:
@ make mre -C $(CH_PATH)
@ make mre -C $(PS_PATH)
@ ln -fs $(CH_PATH)$(CH) $(CH)
@ ln -fs $(PS_PATH)$(PS) $(PS)
@ chmod 744 $(CH) $(PS)
clean:
make clean -C $(CH_PATH)
make clean -C $(PS_PATH)
fclean:
make fclean -C $(CH_PATH)
make fclean -C $(PS_PATH)
rm -f $(CH) $(PS)
re: fclean all