aboutsummaryrefslogtreecommitdiff
path: root/message.mk
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-08-20 14:53:29 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-08-20 14:53:29 +0300
commitb26ded3ab1c09e2a127feb5f4e22e97242ce77d7 (patch)
treef57e0a347d1ecd73dd2df1e5a1c419df404f650a /message.mk
parent48f8ab1ae2612960cbd82c1f9967fd118aae4c67 (diff)
downloadqmk_firmware-b26ded3ab1c09e2a127feb5f4e22e97242ce77d7.tar.gz
qmk_firmware-b26ded3ab1c09e2a127feb5f4e22e97242ce77d7.zip
Comment the Makefile
Also move some messages to message.mk
Diffstat (limited to 'message.mk')
-rw-r--r--message.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/message.mk b/message.mk
index f8fd38712..fb1a7a1f9 100644
--- a/message.mk
+++ b/message.mk
@@ -31,7 +31,7 @@ PRINT_ERROR_PLAIN = ($(SILENT) ||printf " $(ERROR_STRING)" | $(AWK_STATUS)) && $
31PRINT_WARNING_PLAIN = ($(SILENT) || printf " $(WARN_STRING)" | $(AWK_STATUS)) && $(TAB_LOG_PLAIN) 31PRINT_WARNING_PLAIN = ($(SILENT) || printf " $(WARN_STRING)" | $(AWK_STATUS)) && $(TAB_LOG_PLAIN)
32PRINT_OK = $(SILENT) || printf " $(OK_STRING)" | $(AWK_STATUS) 32PRINT_OK = $(SILENT) || printf " $(OK_STRING)" | $(AWK_STATUS)
33BUILD_CMD = LOG=$$($(CMD) 2>&1) ; if [ $$? -gt 0 ]; then $(PRINT_ERROR); elif [ "$$LOG" != "" ] ; then $(PRINT_WARNING); else $(PRINT_OK); fi; 33BUILD_CMD = LOG=$$($(CMD) 2>&1) ; if [ $$? -gt 0 ]; then $(PRINT_ERROR); elif [ "$$LOG" != "" ] ; then $(PRINT_WARNING); else $(PRINT_OK); fi;
34MSG_NO_CMP = $(ERROR_COLOR)Error:$(NO_COLOR)$(BOLD) cmp command not found, please install diffutils\n$(NO_COLOR) 34MAKE_MSG_FORMAT = $(AWK) '{ printf "%-118s", $$0;}'
35 35
36# Define Messages 36# Define Messages
37# English 37# English
@@ -59,4 +59,13 @@ MSG_SUBMODULE_DIRTY = $(WARN_COLOR)WARNING:$(NO_COLOR)\n \
59 git submodule sync --recursive\n\ 59 git submodule sync --recursive\n\
60 git submodule update --init --recursive$(NO_COLOR)\n\n\ 60 git submodule update --init --recursive$(NO_COLOR)\n\n\
61 You can ignore this warning if you are not compiling any ChibiOS keyboards,\n\ 61 You can ignore this warning if you are not compiling any ChibiOS keyboards,\n\
62 or if you have modified the ChibiOS libraries yourself. \n\n \ No newline at end of file 62 or if you have modified the ChibiOS libraries yourself. \n\n
63MSG_NO_CMP = $(ERROR_COLOR)Error:$(NO_COLOR)$(BOLD) cmp command not found, please install diffutils\n$(NO_COLOR)
64
65define GENERATE_MSG_MAKE_KB
66 MSG_MAKE_KB_ACTUAL := Making $$(KB_SP) with keymap $(BOLD)$$(CURRENT_KM)$(NO_COLOR)
67 ifneq ($$(MAKE_TARGET),)
68 MSG_MAKE_KB_ACTUAL += and target $(BOLD)$$(MAKE_TARGET)$(NO_COLOR)
69 endif
70endef
71MSG_MAKE_KB = $(eval $(call GENERATE_MSG_MAKE_KB))$(MSG_MAKE_KB_ACTUAL)