Optimize dependency generation.
This commit is contained in:
parent
bb3a9499fb
commit
cb6b070e1a
1 changed files with 3 additions and 3 deletions
|
@ -91,17 +91,17 @@ depend: pre-depend ${SRCS}
|
|||
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}; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue