Skip to content
Snippets Groups Projects
Commit c097ea5d authored by Ari Suutari's avatar Ari Suutari Committed by Paul Sokolovsky
Browse files

Adjust sed regex that processes dependency file from compiler

so that resulting file is correct also on windows systems (ie.
with file names containing drive letter).
parent c98c128f
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ $(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
@# The following fixes the dependency file.
@# See http://make.paulandlesley.org/autodep.html for details.
@$(CP) $(@:.o=.d) $(@:.o=.P); \
$(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
$(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \
$(RM) -f $(@:.o=.d)
endef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment