Skip to content

Commit cd87d20

Browse files
committed
mkrules.mk: Add comment why dependency parsing regex was tweaked.
(Windows compatibility.)
1 parent c097ea5 commit cd87d20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/mkrules.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ $(ECHO) "CC $<"
3535
$(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
3636
@# The following fixes the dependency file.
3737
@# See http://make.paulandlesley.org/autodep.html for details.
38+
@# Regex adjusted from the above to play better with Windows paths, etc.
3839
@$(CP) $(@:.o=.d) $(@:.o=.P); \
3940
$(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \
4041
-e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \

0 commit comments

Comments
 (0)