-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (43 loc) · 1.42 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
##
## EPITECH PROJECT, 2017
## Makefile
## File description:
## root makefile
##
#_-_-_-_-_-_-_-_-_-_-_-_VAR_-_-_-_-_-_-_-_-_-_-_-_-_#
ASM_DIR = ./asm
COREWAR_DIR = ./corewar
TEST = ./bonus/unitest
COREWAR = $(COREWAR_DIR)/corewar
ASM = $(ASM_DIR)/asm
#-_-_-_-_-_-_-_-_-_-_-_RULES-_-_-_-_-_-_-_-_-_-_-_-_#
all: $(COREWAR) $(ASM)
$(COREWAR):
@printf "\e[32;1m[COMPILING COREWAR]\e[0m\n"
@make --no-print-directory -C $(COREWAR_DIR) all
$(ASM):
@printf "\e[32;1m[COMPILING ASM]\e[0m\n"
@make --no-print-directory -C $(ASM_DIR) all
re:
@printf "\e[32;1m[RECOMPILING COREWAR]\e[0m\n"
@printf "\e[32;1m[RECOMPILING ASM]\e[0m\n"
@make --no-print-directory -C $(COREWAR_DIR) re
@make --no-print-directory -C $(ASM_DIR) re
debug:
@printf "\e[32;1m[COMPILING DEBUG MODE COREWAR]\e[0m\n"
@printf "\e[32;1m[COMPILING DEBUG MODE ASM]\e[0m\n"
@make --no-print-directory -C $(COREWAR_DIR) debug
@make --no-print-directory -C $(ASM_DIR) debug
clean:
@printf "\e[32;1m[CLEANING COREWAR]\e[0m\n"
@printf "\e[32;1m[CLEANING ASM]\e[0m\n"
@make --no-print-directory -C $(COREWAR_DIR) clean
@make --no-print-directory -C $(ASM_DIR) clean
fclean:
@printf "\e[32;1m[FCLEANING COREWAR]\e[0m\n"
@printf "\e[32;1m[FCLEANING ASM]\e[0m\n"
@make --no-print-directory -C $(COREWAR_DIR) fclean
@make --no-print-directory -C $(ASM_DIR) fclean
test_run:
test_clear:
.PHONY: re clean fclean test_run test_clear all docker