From cfb43383198aeb59e461bc0565a9a178d2ae6f01 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 27 Aug 2014 12:13:53 +0200 Subject: [PATCH] Fixed printing of multi-line Makefile.conf --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa42cf7d0..49a387263 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,13 @@ OBJS = kernel/version_$(GIT_REV).o ABCREV = 4d547a5e065b ABCPULL = 1 +define newline + + +endef + ifneq ($(wildcard Makefile.conf),) -$(info $(shell sed 's,^,[Makefile.conf] ,' < Makefile.conf)) +$(info $(subst $$--$$,$(newline),$(shell sed 's,^,[Makefile.conf] ,; s,$$,$$--$$,;' < Makefile.conf | tr -d '\n' | sed 's,\$$--\$$$$,,'))) include Makefile.conf endif -- 2.30.2