Allow build.monolithic to search subdirectories.

Uses `find' rather than `echo' to get a list of all source files within
the module directory. The list is passed to sort. Allows subdirectories
using the nnn_name notation to be included in the correct order.
This commit is contained in:
Laurence Withers 2007-09-26 11:52:40 +00:00
commit 61e8d27edd
8 changed files with 10 additions and 10 deletions

View file

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ]
then
MONOLITHIC_SOURCE="$(echo src/@NAME@/*.c)"
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.c' | sort)"
make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1