Index: buildsys.mk.in ================================================================== --- buildsys.mk.in +++ buildsys.mk.in @@ -121,16 +121,16 @@ esac; \ done; \ if test x"$$regen" = x"1" -a x"$$deps" != "x"; then \ ${DEPEND_STATUS}; \ if ${MAKE} ${MFLAGS} $$deps; then \ - rm -f .deps; \ + test -f .deps && rm .deps; \ cat $$deps >.deps; \ rm -f $$deps; \ ${DEPEND_OK}; \ else \ - rm -f .deps $$deps; \ + :> $$deps; \ ${DEPEND_FAILED}; \ fi; \ fi .c.dep .cc.dep .cxx.dep .m.dep: @@ -413,11 +413,11 @@ ${DIR_ENTER}; \ ${MAKE} ${MFLAGS} distclean || exit 1; \ ${DIR_LEAVE}; \ done - for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \ + for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} .deps *~; do \ if test -f $$i -o -d $$i; then \ if rm -fr $$i; then \ ${DELETE_OK}; \ else \ ${DELETE_FAILED}; \