mirror of
https://github.com/brain-hackers/cegcc-build.git
synced 2024-12-22 20:20: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
|
--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} \
|
||||||
|
Loading…
Reference in New Issue
Block a user