From 2bee060acb705a6f09b21c816aa226b9904fb12e Mon Sep 17 00:00:00 2001 From: jubianchi Date: Fri, 19 Feb 2021 23:20:54 +0100 Subject: [PATCH] fix: Use space-indent when calling functions outside of rules --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ae7874fbd1f..9e79b7bab8d 100644 --- a/Makefile +++ b/Makefile @@ -300,15 +300,17 @@ endif HOST_TARGET=$(shell rustup show | grep 'Default host: ' | cut -d':' -f2 | tr -d ' ') -ifneq (, $(LIBC)) - $(info C standard library: $(bold)$(green)$(LIBC)$(reset)) -endif - $(info -----------) $(info $(bold)$(green)INFORMATION$(reset)) $(info -----------) $(info ) $(info Host Target: `$(bold)$(green)$(HOST_TARGET)$(reset)`.) +ifneq (, $(LIBC)) + # We use spaces instead of tabs to indent `$(info)` + # otherwise it's considered as a command outside a + # target and it will fail. + $(info C standard library: $(bold)$(green)$(LIBC)$(reset)) +endif $(info Enabled Compilers: $(bold)$(green)$(subst $(space),$(reset)$(comma)$(space)$(bold)$(green),$(compilers))$(reset).) $(info Compilers + engines pairs (for testing): $(bold)$(green)${compilers_engines}$(reset)) $(info Cargo features:)