quiet.mk: Fix newline generation in error message
Not all echo implementations support escape characters and newline insertion. Make sure quiet.mk does not use escape characters to generate newlines and instead split the output over multiple echo commands to get the same effect. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
2f5a4a2428
commit
db7b7c5194
4
quiet.mk
4
quiet.mk
|
@ -28,7 +28,9 @@ ifneq ($(VERBOSE),1)
|
||||||
(ERR=$$?; if [ $$ERR = 0 ]; then \
|
(ERR=$$?; if [ $$ERR = 0 ]; then \
|
||||||
echo " $(GREEN)OK$(NC)"; \
|
echo " $(GREEN)OK$(NC)"; \
|
||||||
else \
|
else \
|
||||||
echo " $(RED)FAILED$(NC)\nFor details see $(HL)$(CURDIR)/$(strip $(2))$(NC)\n"; \
|
echo " $(RED)FAILED$(NC)"; \
|
||||||
|
echo "For details see $(HL)$(CURDIR)/$(strip $(2))$(NC)"; \
|
||||||
|
echo ""; \
|
||||||
fi; exit $$ERR)
|
fi; exit $$ERR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue