From c097ea5dd26291de3fa9867141ae442856726242 Mon Sep 17 00:00:00 2001 From: Ari Suutari Date: Tue, 5 May 2015 21:39:28 +0300 Subject: [PATCH] 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). --- py/mkrules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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