Fixed printing of multi-line Makefile.conf
authorClifford Wolf <clifford@clifford.at>
Wed, 27 Aug 2014 10:13:53 +0000 (12:13 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 27 Aug 2014 10:13:53 +0000 (12:13 +0200)
Makefile

index fa42cf7d028da5843852e7626393f34ddb51b662..49a387263950a45ede81fc8b0adfca9a31ffcb3d 100644 (file)
--- 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