-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (51 loc) · 2.06 KB
/
Makefile
File metadata and controls
65 lines (51 loc) · 2.06 KB
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
# **************************************************************************** #
# #
# :::::::: #
# Makefile :+: :+: #
# +:+ #
# By: aholster <aholster@student.codam.nl> +#+ #
# +#+ #
# Created: 2019/03/08 15:18:49 by aholster #+# #+# #
# Updated: 2019/09/10 20:24:10 by lgutter ######## odam.nl #
# #
# **************************************************************************** #
FILES := main.c fillit.c solver.c shift_corner.c place_tet.c smallest_map.c\
check_tet.c increment_offset.c remove_tet.c print_result.c read_tet.c\
calc_empty.c
HEADER := fillit.h
NORM := norminette $(FILES) $(HEADER) | grep -e "Error" -e "Warning" -B 1
CC := gcc -g -Wall -Werror -Wextra
NAME := fillit
all: $(NAME)
assemble:
@${CC} $(FILES) -I ./libft -L ./libft -lft -o $(NAME)
$(NAME):
@make -C libft/
@echo "\033[0;33mStarting assembly of $(NAME)...\033[0;00m"
@time make assemble
@echo "\033[0;32m$(NAME) successfully assembled!\033[0;00m\n"
clean:
@rm -rf *~ \#*\# .DS_Store
@make clean -C libft/
@echo "\033[0;31mPests exterminated!\033[0;00m\n"
fclean: clean
@rm -rf $(NAME)
@make fclean -C libft/
@echo "\033[0;31mObituary of $(NAME): Deceased on $(shell date).\033[0;00m\n"
re: fclean all
norm:
@echo "**+++=====*=====*=====*=====*{\033[0;31mOUT\033[0;00m}\
*=====*=====*=====*=====+++**"
@$(NORM) || TRUE
@echo "**+++=====*=====*=====*=====*=====*=====*=====*=====*=====+++**"
add:
@git add $(FILES) $(HEADER) Makefile author
git status
push:
#ifdef MSG
@make norm
@git commit
git push
#else
# @echo "\033[0;31mUsage: make push MSG=\"Message here\"\033[0;00m"
#endif