From f91840f1cc1b1739a8dac349ebed38a19729e279 Mon Sep 17 00:00:00 2001 From: Willem Date: Sun, 7 Jul 2024 05:38:57 +0200 Subject: [PATCH] Add verbose code to read verbose flags. --- Makefile | 78 ++++++++++++++++++++++++++++++++++++++++++--- lib/make/mb_make.mk | 2 ++ 2 files changed, 75 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 076cfe7..1bc3b88 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,80 @@ # -# Configure make +# Configure make, can't use tabs here, than no indenting, +# as white space is not for typing multiple white spaces. .SUFFIXES: .PHONY: Makefile -ifeq ($(VERBOSE),off) +ifdef VERBOSE +ifeq ("$(VERBOSE)", "off") .SILENT: endif -ifeq ($(.DEFAULT_GOAL),) -.DEFAULT_GOAL := @help +endif +ifdef 冗長な +ifeq ("$(冗長な)", "オフ") +.SILENT: +endif +endif +ifdef UITGEBREID +ifeq ("$(UITGEBREID)", "uit") +.SILENT: +endif +endif +ifdef VERBOSA +ifeq ("$(VERBOSA)", "apagada") +.SILENT: +endif +endif +ifdef VERBOSO +ifeq ("$(VERBOSO)", "apagado") +.SILENT: +endif +endif +ifdef VERBEUSE +ifeq ("$(VERBEUSE)", "désactivé") +.SILENT: +endif +endif +ifdef VERBEUX +ifeq ("$(VERBEUX)", "désactivé") +.SILENT: +endif +endif +ifdef подробный +ifeq ("$(подробный)", "выключенный") +.SILENT: +endif +endif +ifdef 冗長的 +ifeq ("$(冗長的)", "離開") +.SILENT: +endif +endif +ifdef वाचाल +ifeq ("$(वाचाल)", "बंद") +.SILENT: +endif +endif +ifndef VERBOSE +ifndef 冗長な +ifndef UITGEBREID +ifndef VERBOSA +ifndef VERBOSO +ifndef VERBEUSE +ifndef VERBEUX +ifndef подробный +ifndef 冗長的 +ifndef वाचाल +.SILENT: +endif +endif +endif +endif +endif +endif +endif +endif +endif endif @@ -19,7 +85,9 @@ endif PATH_BIN := bin PATH_SRC := src PATH_MSXBUILD ?= . - +ifeq ($(.DEFAULT_GOAL),) +.DEFAULT_GOAL := @help +endif # Generate project flow include $(PATH_MSXBUILD)/lib/make/msxbuild.mk diff --git a/lib/make/mb_make.mk b/lib/make/mb_make.mk index e52944e..3fb3eda 100644 --- a/lib/make/mb_make.mk +++ b/lib/make/mb_make.mk @@ -132,3 +132,5 @@ $(if $(filter -1,$(MB_OS_COLORS)),@echo $(MB_MAKE_ECHO_CRAYON) $(1),$(MB_OS_ECHO endef MB_DOC_FIRE_FUNCTION_DEEP += $(call mb_make_call,mb_doc_function_deep,mb_make_echo_assert,"Echo's an message to stdout with 'yellow' crayon.","") +# Last color: Cyan: \u001b[36m +