Fix Makefile to remove literal '\n' printed in .d files in some systems.

This commit is contained in:
Lorenzo Figini 2022-10-28 13:32:56 +02:00
parent 3eab989d7b
commit 6181b6096e

View File

@ -159,7 +159,7 @@ $(OBJDIR)/%.d: $(SRCDIR)/%.f90 | $(OBJDIR)
sed -nE 's@^[[:blank:]]*use[[:blank:]]+'\ sed -nE 's@^[[:blank:]]*use[[:blank:]]+'\
'([^,[:blank:]&]+).*@$(OBJDIR)/\1.o \\@p' | \ '([^,[:blank:]&]+).*@$(OBJDIR)/\1.o \\@p' | \
sort -u >> '$@' sort -u >> '$@'
@sed -nE 's@^#include "(.+)"@$(INCDIR)/\1 \\\n@p' '$<' >> '$@' @sed -nE 's@^#include "(.+)"@$(INCDIR)/\1@p' '$<' >> '$@'
# Load the generated rules # Load the generated rules
include $(DEPS) include $(DEPS)