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

View File

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