wmake/makefiles/files: Preserve the indentation of the source file lines in Make/files

This commit is contained in:
Henry Weller
2020-12-10 08:24:28 +00:00
parent 848ec1cd97
commit a918deda09

View File

@ -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