Files
HackerOoT/tools/print_rules.mk
Yanis e6fca950b7 Clean up terminal output (#163)
* cleanup terminal output

* fixes
2025-01-07 17:38:46 +01:00

27 lines
446 B
Makefile

# Verbose toggle
V := @
ifeq (VERBOSE, 1)
V=
endif
# Colors
NO_COL := \033[0m
GREEN := \033[0;32m
BLUE := \033[0;36m
YELLOW := \033[0;33m
BLINK := \033[32;5m
PRINT := printf
define print_no_args
$(V)$(PRINT) "$(GREEN)$(1)$(NO_COL)\n"
endef
define print_one_arg
$(V)$(PRINT) "$(GREEN)$(1) $(BLUE)$(2)$(NO_COL)\n"
endef
define print_two_args
$(V)$(PRINT) "$(GREEN)$(1) $(YELLOW)$(2)$(GREEN) -> $(BLUE)$(3)$(NO_COL)\n"
endef