Fix Makefile to remove literal '\n' printed in .d files in some systems.
This commit is contained in:
parent
3eab989d7b
commit
6181b6096e
2
Makefile
2
Makefile
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user