# HG changeset patch # User Jonathan Schleifer # Date 1202636182 -3600 # Node ID 179821cb7dca7f608e29299acf5dc3543fdcc5cf # Parent 77cd6da06defa7b21fb21b5d148389c8bd936dff Fix a possible bug in dependency generation. diff -r 77cd6da06def -r 179821cb7dca buildsys.mk.in --- a/buildsys.mk.in Sun Feb 10 10:29:56 2008 +0100 +++ b/buildsys.mk.in Sun Feb 10 10:36:22 2008 +0100 @@ -98,15 +98,17 @@ ${DEPEND_STATUS}; \ rm -f .deps; \ if ${MAKE} ${MFLAGS} ${DEPS}; then \ + cat ${DEPS} >.deps; \ + rm -f ${DEPS}; \ ${DEPEND_OK}; \ else \ - rm -f .deps; \ + rm -f .deps ${DEPS}; \ ${DEPEND_FAILED}; \ fi; \ fi .c.dep .cc.dep .cxx.dep .m.dep: - ${CPP} ${CPPFLAGS} -M $< >>.deps + ${CPP} ${CPPFLAGS} -M $< >$@ .d.dep: @@ -352,7 +354,7 @@ ${DIR_LEAVE}; \ done - for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps; do \ + for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps ${DEPS}; do \ if test -f $$i -o -d $$i; then \ if rm -fr $$i; then \ ${DELETE_OK}; \