summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-06 15:34:33 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-06 15:34:33 +0300
commitcd87d20f4631660e0189371eed7155bfca457ad4 (patch)
tree079235a9be4396f71165e454d04220b44f96c38b /py
parentc097ea5dd26291de3fa9867141ae442856726242 (diff)
downloadmicropython-cd87d20f4631660e0189371eed7155bfca457ad4.tar.gz
micropython-cd87d20f4631660e0189371eed7155bfca457ad4.zip
mkrules.mk: Add comment why dependency parsing regex was tweaked.
(Windows compatibility.)
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index c36f0f9cd8..a994016148 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -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); \