build-mingw32ce.sh: add option --incremental

This commit is contained in:
Max Kellermann 2011-12-21 19:58:08 +01:00
parent 872c249d2b
commit d75a5898cd
1 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,7 @@ Usage: $0 [OPTIONS] ...
--components=LIST specify which components to build
valid components are: ${COMPONENTS_COMMA_LIST}
[all]
--incremental do an incremental build
Report bugs to <cegcc-devel@lists.sourceforge.net>.
_ACEOF
@ -105,6 +106,9 @@ do
--host=*)
host=$ac_optarg ;;
--incremental)
incremental=yes ;;
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
@ -194,6 +198,13 @@ function configure_module()
mkdir -p $subdir
cd $subdir
if [ "$incremental" = "yes" \
-a Makefile -nt $src/configure \
-a Makefile -nt $src/Makefile.in ]; then
# Makefile is fresh, don't need to reconfigure
return
fi
$src/configure \
--prefix=${PREFIX} \
--build=${BUILD} \