Mercurial > audlegacy
changeset 3646:4caed047a58f
Optimize dependency generation.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Wed, 26 Sep 2007 06:38:34 +0200 |
parents | bbd1f39e5377 |
children | fa19626d85fc a5a81f8d6fd7 |
files | buildsys.mk.in |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/buildsys.mk.in Wed Sep 26 06:32:34 2007 +0200 +++ b/buildsys.mk.in Wed Sep 26 06:38:34 2007 +0200 @@ -91,17 +91,17 @@ regen=0; \ for i in ${SRCS}; do test $$i -nt .deps && regen=1; done; \ if test x"$$regen" = x"1"; then \ - error=0; \ + list=""; \ ${DEPEND_STATUS}; \ rm -f .deps; \ for i in ${SRCS}; do \ case $${i##*.} in \ c|cc|cxx|m) \ - ${CPP} ${CPPFLAGS} -M $$i >>.deps || error=1; \ + list="$$list $$i"; \ ;; \ esac; \ done; \ - if test x"$$error" = x"0"; then \ + if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \ ${DEPEND_OK}; \ else \ ${DEPEND_FAILED}; \