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,11 +100,13 @@ depend: pre-depend ${SRCS}
;; \ ;; \
esac; \ esac; \
done; \ done; \
if test x"$$list" != "x"; then \
if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \ if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \
${DEPEND_OK}; \ ${DEPEND_OK}; \
else \ else \
${DEPEND_FAILED}; \ ${DEPEND_FAILED}; \
fi; \ fi; \
fi; \
fi fi
pre-depend: pre-depend: