-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 1.39 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: Kashnitskiy <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/13 16:02:18 by mtrisha #+# #+# #
# Updated: 2020/01/27 17:03:18 by Kashnitskiy ### ########.fr #
# #
# **************************************************************************** #
NAME = lem-in
CMAKEDIR = ./tmp/
LIBDIR = ./libft/
all: $(NAME)
$(NAME): callcmake
callcmake: $(CMAKEDIR) $(CMAKEDIR)Makefile
$(MAKE) -C $(CMAKEDIR) $(MAKECMDGOALS)
$(CMAKEDIR):
mkdir -p $(CMAKEDIR)
cmake: $(CMAKEDIR)
cd $(CMAKEDIR); cmake ../
$(CMAKEDIR)Makefile:
cd $(CMAKEDIR); cmake ../
clean:
$(MAKE) -C $(LIBDIR) clean
rm -r -f $(CMAKEDIR)
rm -r -f *.dSYM
fclean:
$(MAKE) -C $(LIBDIR) fclean
rm -r -f $(CMAKEDIR)
rm -r -f $(NAME)
rm -r -f $(NAME).debug
rm -r -f *.dSYM
re: fclean
$(MAKE) all
debug: all