-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (33 loc) · 1.3 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
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ollevche <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/09/27 14:27:40 by ollevche #+# #+# #
# Updated: 2018/09/27 14:27:40 by ollevche ### ########.fr #
# #
#******************************************************************************#
ASM = asm
ASMDIR = compiler/
VM = corewar
VMDIR = virtual_machine/
all: $(VM) $(ASM)
$(ASM):
@make -C $(ASMDIR)
@cp $(ASMDIR)$(ASM) ./
@echo "copied $(ASM)"
$(VM):
@make -C $(VMDIR)
@cp $(VMDIR)$(VM) ./
@echo "copied $(VM)"
clean:
@make clean -C $(ASMDIR)
@make clean -C $(VMDIR)
fclean: clean
@make fclean -C $(ASMDIR)
@make fclean -C $(VMDIR)
@rm -rf $(ASM) $(VM)
@echo "removed $(ASM) and $(VM) copies"
re: fclean all