Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd5a5d32 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Add macros for printing pretty warnings/errors in rules

Change-Id: Ia58e6bc1328c84e5f4ba1f6a2fd2d650e94e127e
parent a6f510c7
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -834,6 +834,20 @@ $(subst //,/,$(1)/$(2))
endef


###########################################################
## Color-coded warnings and errors in build rules
##
## $(1): message to print
###########################################################
define echo-warning
echo -e "\e[1;35mwarning:\e[0m \e[1m" $(1) "\e[0m\n"
endef

define echo-error
echo -e "\e[1;31merror:\e[0m \e[1m" $(1) "\e[0m\n"
endef


###########################################################
## Package filtering
###########################################################