Fix broken dependencies for .gmo files

This commit is contained in:
Joe Thornber 2013-04-22 13:50:40 +01:00
parent 4cb19a06ba
commit e0230c5c55
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,7 @@ endif
%.d: %.cc
@echo " [DEP] $<"
$(CXX) -MM -MT $(subst .cc,.o,$<) $(INCLUDES) $(TEST_INCLUDES) $(CXXFLAGS) $< > $@.$$$$;\
sed 's,\([^ :]*\)\.o[ :]*,\1.o $@ : Makefile ,g' < $@.$$$$ > $@; \
sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $@ : Makefile ,g' < $@.$$$$ > $@; \
$(RM) $@.$$$$
%.o: %.cc
@ -180,7 +180,7 @@ cache_check: $(CACHE_CHECK_OBJECTS) cache/check.o
DEPEND_FILES=\
$(subst .cc,.d,$(SOURCE)) \
$(subst .cc,.d,$(TEST_SOURCE)) \
$(subst .cc,.d,$(PROGRAM_SOURCE))
$(subst .cc,.d,$(PROGRAM_SOURCE))
.PHONY: clean distclean

View File

@ -50,6 +50,7 @@ TEST_SOURCE=\
unit-tests/cache_t.cc \
unit-tests/endian_t.cc \
unit-tests/space_map_t.cc \
unit-tests/span_iterator_t.cc \
unit-tests/thin_metadata_t.cc \
unit-tests/transaction_manager_t.cc