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).
pull/1232/merge
Ari Suutari 2015-05-05 21:39:28 +03:00 zatwierdzone przez Paul Sokolovsky
rodzic c98c128fe8
commit c097ea5dd2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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