mirror of
https://github.com/brain-hackers/cegcc-build.git
synced 2024-12-22 12:10:08 +09:00
build-mingw32ce.sh: add option --incremental
This commit is contained in:
parent
872c249d2b
commit
d75a5898cd
@ -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} \
|
||||
|
Loading…
Reference in New Issue
Block a user