From a918deda09d0cee70e7bd725ac7ef6b60b8a12e8 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 10 Dec 2020 08:24:28 +0000 Subject: [PATCH] wmake/makefiles/files: Preserve the indentation of the source file lines in Make/files --- wmake/makefiles/files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wmake/makefiles/files b/wmake/makefiles/files index bb5cba0946..5d99130e95 100644 --- a/wmake/makefiles/files +++ b/wmake/makefiles/files @@ -54,7 +54,8 @@ include $(OPTIONS) all : $(FILES) # Create a sed pattern from the source file suffix list -SUFFIX_SED = $(foreach s,$(SUFFIXES),'-e s/\(^ *[^ ]*\$(s)$$\)/SOURCE += \1/') +SUFFIX_SED = \ + $(foreach s,$(SUFFIXES),'-e s/\(^ *\)\([^ ]*\$(s)$$\)/\1SOURCE += \2/') # Prepend SOURCE += to each of the source file names $(FILES): $(MAKE_DIR)/files