Mercurial > audlegacy
changeset 4265:7410b81a3362
Fix a possible bug in dependency generation.
author | Jonathan Schleifer <js-audacious@webkeks.org> |
---|---|
date | Sun, 10 Feb 2008 10:40:51 +0100 |
parents | 49740df2ccca |
children | 2b7a74fce100 |
files | buildsys.mk.in |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/buildsys.mk.in Sun Feb 10 10:29:41 2008 +0100 +++ b/buildsys.mk.in Sun Feb 10 10:40:51 2008 +0100 @@ -99,15 +99,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: @@ -353,7 +355,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}; \