summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-04-06 01:07:27 -0400
committeryenatch <yenatch@gmail.com>2018-04-06 01:07:27 -0400
commita8db5642017a0c4a3a5df1aa36abca9af5ea4454 (patch)
treeb0db85143f5e66f192e3a321b2dc31baf8c46474
parentada00970875cd1f00532aa88e62cea941f497e0d (diff)
fix newlines in recursive make output
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 892c973af..433ce96b0 100644
--- a/Makefile
+++ b/Makefile
@@ -63,10 +63,12 @@ ALL_BUILDS := ruby ruby_rev1 ruby_rev1 sapphire sapphire_rev1 sapphire_rev2 ruby
# Available targets
.PHONY: all clean tidy tools $(ALL_BUILDS)
+infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))
+
# Build tools when building the rom
# Disable dependency scanning for clean/tidy/tools
ifeq (,$(filter-out all,$(MAKECMDGOALS)))
-$(info $(shell $(MAKE) tools))
+$(call infoshell, $(MAKE) tools)
else
NODEP := 1
endif