mkrules.mk: Add comment why dependency parsing regex was tweaked.

(Windows compatibility.)
pull/1232/merge
Paul Sokolovsky 2015-05-06 15:34:33 +03:00
rodzic c097ea5dd2
commit cd87d20f46
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -35,6 +35,7 @@ $(ECHO) "CC $<"
$(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
@# The following fixes the dependency file.
@# See http://make.paulandlesley.org/autodep.html for details.
@# Regex adjusted from the above to play better with Windows paths, etc.
@$(CP) $(@:.o=.d) $(@:.o=.P); \
$(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \