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; \
done; \
if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \
${DEPEND_OK}; \
else \
${DEPEND_FAILED}; \
if test x"$$list" != "x"; then \
if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \
${DEPEND_OK}; \
else \
${DEPEND_FAILED}; \
fi; \
fi; \
fi