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
main
Kai Liu 11 years ago
parent 22e1b04deb
commit f3b3316a07
  1. 2
      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))

Loading…
Cancel
Save