-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
109 lines (87 loc) · 3.58 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: acesar-l <acesar-l@student.42sp.org.br> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/03/25 16:02:17 by acesar-l #+# #+# #
# Updated: 2022/09/28 18:59:26 by acesar-l ### ########.fr #
# #
# **************************************************************************** #
PURPLE = \033[0;35m
GREEN = \033[0;32m
RED = \033[0;31m
RESET = \033[0m
PATH_TEST = tests
PATH_GAME = ../
TESTS = ${PATH_TEST}/check-for-no-map.sh \
${PATH_TEST}/check-for-missing-argv.sh \
${PATH_TEST}/check-for-multiple-argv.sh \
${PATH_TEST}/check-for-invalid-extension.sh \
${PATH_TEST}/check-for-empty-line.sh \
${PATH_TEST}/check-for-not-rectangular-map.sh \
${PATH_TEST}/check-for-invalid-parameter.sh \
${PATH_TEST}/check-for-missing-W.sh \
${PATH_TEST}/check-for-missing-C.sh \
${PATH_TEST}/check-for-missing-E.sh \
${PATH_TEST}/check-for-missing-P.sh \
${PATH_TEST}/check-for-extra-P.sh \
${PATH_TEST}/check-for-extra-E.sh
all: m
m: game permission tester
game:
@ make -C ${PATH_GAME}
permission:
@chmod -R a+x *
no-map:
@ ./${PATH_TEST}/check-for-no-map.sh
miss-argv:
@ ./${PATH_TEST}/check-for-missing-argv.sh
mult-argv:
@ ./${PATH_TEST}/check-for-multiple-argv.sh
invalid-extension:
@ ./${PATH_TEST}/check-for-invalid-extension.sh
empty-line:
@ ./${PATH_TEST}/check-for-empty-line.sh
not-rectangular:
@ ./${PATH_TEST}/check-for-not-rectangular-map.sh
invalid-paramater:
@ ./${PATH_TEST}/check-for-invalid-parameter.sh
miss-w:
@ ./${PATH_TEST}/check-for-missing-W.sh
miss-c:
@ ./${PATH_TEST}/check-for-missing-C.sh
miss-e:
@ ./${PATH_TEST}/check-for-missing-E.sh
miss-p:
@ ./${PATH_TEST}/check-for-missing-P.sh
extra-p:
@ ./${PATH_TEST}/check-for-extra-P.sh
extra-e:
@ ./${PATH_TEST}/check-for-extra-E.sh
tester:
@ echo
@ echo "${PURPLE}***************************************************************${RESET}"
@ echo "${PURPLE}* so_long_tester *${RESET}"
@ echo "${PURPLE}***************************************************************${RESET}"
@ echo
@ ./${PATH_TEST}/check-for-no-map.sh
@ ./${PATH_TEST}/check-for-missing-argv.sh
@ ./${PATH_TEST}/check-for-multiple-argv.sh
@ ./${PATH_TEST}/check-for-invalid-extension.sh
@ ./${PATH_TEST}/check-for-empty-line.sh
@ ./${PATH_TEST}/check-for-not-rectangular-map.sh
@ ./${PATH_TEST}/check-for-invalid-parameter.sh
@ ./${PATH_TEST}/check-for-missing-W.sh
@ ./${PATH_TEST}/check-for-missing-C.sh
@ ./${PATH_TEST}/check-for-missing-E.sh
@ ./${PATH_TEST}/check-for-missing-P.sh
@ ./${PATH_TEST}/check-for-extra-P.sh
@ ./${PATH_TEST}/check-for-extra-E.sh
@ echo
@ echo "${PURPLE}***************************************************************${RESET}"
@ echo
.PHONY: all m game permission no-map miss-argv mult-argv \
invalid-extension empty-line not-rectangular \
invalid-paramater miss-w miss-c miss-e miss-p extra-p extra-e tester