-
Notifications
You must be signed in to change notification settings - Fork 0
/
tools.mk
76 lines (58 loc) · 2.2 KB
/
tools.mk
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
# **************************************************************************** #
# #
# ::: :::::::: #
# tools.mk :+: :+: :+: #
# +:+ +:+ +:+ #
# By: thdelmas <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/04/28 17:25:36 by thdelmas #+# #+# #
# Updated: 2019/11/02 15:45:14 by thdelmas ### ########.fr #
# #
# **************************************************************************** #
##################################### Tools ####################################
AUTHORS ?= Thdelmas
### Escape Sequences ###
SCURSOR = \033[s
RCURSOR = \033[u
ERASEL = \033[K
### Colors ###
WHITE = \033[0m
CYAN = \033[36m
GREEN = \033[1m\033[32m
GRED = \033[30;41m
WRED = \033[96;41m
BRED = \033[0;31;40m
BBLUE = \033[0;36;40m
WBLUE = \033[31;44m
YELLOW = \033[33m
CLEAR = \033[0;0m
GITCOM ?= "Auto-Save"
GITSTATUS = $(shell git status | sed -n 2p | cut -d' ' -f4)
ADD_TO_NORME = $(SRC_DIR) $(INC_DIR) $(FT_DIR)
ADD_TO_GIT = $(SRC_DIR) $(INC_DIR) $(FT_DIR) $(GITLOG_FILE) \
Makefile tools.mk auteur README.md
.PHONY: hey link compil savegit gitsave norm
### Norminette ###
.ONESHELL:
norm:
@printf "\n$(BRED)\t NORM 42$(CLEAR)\n"
@printf "$(BRED)\t $(ADD_TO_NORME)$(CLEAR)\n"
@norminette -R CheckForbiddenSourceHeader $(HEADER) $(SRC_NAME)
### Messages rules ###
hey_msg:
@printf "\n$(BBLUE)\t $(PROJECT)$(CLEAR)\n"
bye_msg:
@printf "\n$(BBLUE)\t Made with love by:$(CLEAR)\n"
@printf "$(BBLUE)\t $(AUTHORS)$(CLEAR)\n\n"
lib_msg:
@printf "\n$(BRED)\t LIBS$(CLEAR)\n"
compil_msg:
@printf "\n$(BRED)\t COMPIL$(CLEAR)\n"
link_msg:
@printf "\n$(BRED)\t LINK$(CLEAR)\n"
mkdir_msg:
@printf "\n$(BRED)\t MKDIR$(CLEAR)\n"
fclean_msg: hey_msg
@printf "\n$(BRED)\t FCLEAN$(CLEAR)\n"
clean_msg: hey_msg
@printf "\n$(BRED)\t CLEAN$(CLEAR)\n"