Only generate .deps file if there are files for it.

This commit is contained in:
Jonathan Schleifer 2007-09-26 16:20:12 +02:00
parent 5938b04f69
commit e150fa72f5

View file

@ -100,10 +100,12 @@ depend: pre-depend ${SRCS}
;; \ ;; \
esac; \ esac; \
done; \ done; \
if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \ if test x"$$list" != "x"; then \
${DEPEND_OK}; \ if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \
else \ ${DEPEND_OK}; \
${DEPEND_FAILED}; \ else \
${DEPEND_FAILED}; \
fi; \
fi; \ fi; \
fi fi