From f3b3316a072a192e3c603b4f55a7106195b9113a Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Tue, 12 Nov 2013 21:26:19 -0800 Subject: [PATCH] Fix a sed command issue that cannot generated *.d files Summary: The original sed command is not recognized by mac's sed, which generates ".d-e" extension instead of ".d" Test Plan: make clean && make -j32 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f7b114ff2..5ea878b65 100644 --- a/Makefile +++ b/Makefile @@ -369,7 +369,7 @@ endif # the correct path prefix. %.d: %.cc $(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) -MM $< -o $@ - @sed -i -e 's|.*:|$*.o:|' $@ + @sed -i -e 's/.*:/$*.o:/' $@ DEPFILES = $(filter-out util/build_version.d,$(SOURCES:.cc=.d))