Mercurial > audlegacy-plugins
comparison buildsys.mk.in @ 1815:b7d43348245d
Add depend status.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Mon, 24 Sep 2007 20:02:43 +0200 |
parents | a99495a865eb |
children | d7709de0882c |
comparison
equal
deleted
inserted
replaced
1808:7de4914cd8c8 | 1815:b7d43348245d |
---|---|
85 | 85 |
86 depend: pre-depend ${SRCS} | 86 depend: pre-depend ${SRCS} |
87 regen=0; \ | 87 regen=0; \ |
88 for i in ${SRCS}; do [ $$i -nt .deps ] && regen=1; done; \ | 88 for i in ${SRCS}; do [ $$i -nt .deps ] && regen=1; done; \ |
89 if [ $$regen = 1 ]; then \ | 89 if [ $$regen = 1 ]; then \ |
90 ${DEPEND_STATUS}; \ | |
90 rm -f .deps; \ | 91 rm -f .deps; \ |
91 for i in ${SRCS}; do \ | 92 for i in ${SRCS}; do \ |
92 case $${i##*.} in \ | 93 case $${i##*.} in \ |
93 c|cc|cxx|m) \ | 94 c|cc|cxx|m) \ |
94 ${CPP} ${CPPFLAGS} -M $$i >>.deps; \ | 95 if ${CPP} ${CPPFLAGS} -M $$i >>.deps; then \ |
96 ${DEPEND_OK}; \ | |
97 else \ | |
98 ${DEPEND_FAILED}; \ | |
99 fi; \ | |
95 esac; \ | 100 esac; \ |
96 done; \ | 101 done; \ |
97 fi | 102 fi |
98 | 103 |
99 pre-depend: | 104 pre-depend: |
100 | 105 |
101 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS} ${LIB_DEPS} | 106 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS} |
102 ${LINK_STATUS} | 107 ${LINK_STATUS} |
103 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \ | 108 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \ |
104 ${LINK_OK}; \ | 109 ${LINK_OK}; \ |
105 else \ | 110 else \ |
106 ${LINK_FAILED}; \ | 111 ${LINK_FAILED}; \ |
367 fi \ | 372 fi \ |
368 done | 373 done |
369 | 374 |
370 DIR_ENTER = printf "\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1 | 375 DIR_ENTER = printf "\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1 |
371 DIR_LEAVE = printf "\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1 | 376 DIR_LEAVE = printf "\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1 |
377 DEPEND_STATUS = printf "\033[0;33mGenerating dependencies...\033[0m\r" | |
378 DEPEND_OK = printf "\033[0;32mSuccessfully generated dependencies.\033[0m\n" | |
379 DEPEND_FAILED = printf "\033[0;31mFailed to generate dependencies!\033[0m\n"; exit 1 | |
380 COMPILE_STATUS = printf "\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r" | |
381 COMPILE_OK = printf "\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n" | |
382 COMPILE_FAILED = printf "\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 | |
372 LINK_STATUS = printf "\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r" | 383 LINK_STATUS = printf "\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r" |
373 LINK_OK = printf "\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n" | 384 LINK_OK = printf "\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n" |
374 LINK_FAILED = printf "\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1 | 385 LINK_FAILED = printf "\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1 |
375 COMPILE_STATUS = printf "\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r" | |
376 COMPILE_OK = printf "\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n" | |
377 COMPILE_FAILED = printf "\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 | |
378 INSTALL_STATUS = printf "\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r" | 386 INSTALL_STATUS = printf "\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r" |
379 INSTALL_OK = printf "\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n" | 387 INSTALL_OK = printf "\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n" |
380 INSTALL_FAILED = printf "\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 | 388 INSTALL_FAILED = printf "\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |
381 DELETE_OK = printf "\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n" | 389 DELETE_OK = printf "\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n" |
382 DELETE_FAILED = printf "\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 | 390 DELETE_FAILED = printf "\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |