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
......@@ -36,7 +36,7 @@ $(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
@# The following fixes the dependency file.
@# See 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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment