diff options
author | Ari Suutari <ari@stonepile.fi> | 2015-05-05 21:39:28 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-05-06 15:32:13 +0300 |
commit | c097ea5dd26291de3fa9867141ae442856726242 (patch) | |
tree | 904c6c7a4df51c244781fc0ba987b792e78fcd8f | |
parent | c98c128fe885e539ecd73843756340f8950115c8 (diff) | |
download | micropython-c097ea5dd26291de3fa9867141ae442856726242.tar.gz micropython-c097ea5dd26291de3fa9867141ae442856726242.zip |
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).
-rw-r--r-- | py/mkrules.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk index fab29b2b22..c36f0f9cd8 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -36,7 +36,7 @@ $(Q)$(CC) $(CFLAGS) -c -MD -o $@ $< @# The following fixes the dependency file. @# See http://make.paulandlesley.org/autodep.html for details. @$(CP) $(@:.o=.d) $(@:.o=.P); \ - $(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + $(SED) -e 's/#.*//' -e 's/^.*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \ $(RM) -f $(@:.o=.d) endef |