Skip to content
Snippets Groups Projects
Commit cd87d20f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

(Windows compatibility.)
parent c097ea5d
No related branches found
No related tags found
No related merge requests found
......@@ -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); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment