aboutsummaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorAri Suutari2015-05-05 21:39:28 +0300
committerPaul Sokolovsky2015-05-06 15:32:13 +0300
commitc097ea5dd26291de3fa9867141ae442856726242 (patch)
tree904c6c7a4df51c244781fc0ba987b792e78fcd8f /py
parentc98c128fe885e539ecd73843756340f8950115c8 (diff)
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).
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index fab29b2b2..c36f0f9cd 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