Skip to content

Commit c097ea5

Browse files
AriZuupfalcon
authored andcommitted
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).
1 parent c98c128 commit c097ea5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/mkrules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
3636
@# The following fixes the dependency file.
3737
@# See http://make.paulandlesley.org/autodep.html for details.
3838
@$(CP) $(@:.o=.d) $(@:.o=.P); \
39-
$(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
39+
$(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \
4040
-e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \
4141
$(RM) -f $(@:.o=.d)
4242
endef

0 commit comments

Comments
 (0)