mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +00:00
python build script: do make clean if we reconfigured
This commit is contained in:
parent
69a3c31fff
commit
bdd2ee1190
@ -278,6 +278,7 @@ def install(make_args, show_build_environment, use_precompiled_dyngen, build_jit
|
|||||||
configure_macemu_env["CC"] = "gcc %s" % MACEMU_CFLAGS
|
configure_macemu_env["CC"] = "gcc %s" % MACEMU_CFLAGS
|
||||||
configure_macemu_env["CXX"] = "g++ %s" % MACEMU_CXXFLAGS
|
configure_macemu_env["CXX"] = "g++ %s" % MACEMU_CXXFLAGS
|
||||||
|
|
||||||
|
did_configure = False
|
||||||
with dep_tracker.rebuilding_if_needed("sheepshaver_configure", ["configure", "Makefile.in"],
|
with dep_tracker.rebuilding_if_needed("sheepshaver_configure", ["configure", "Makefile.in"],
|
||||||
base_dir=script_path) as needs_rebuild:
|
base_dir=script_path) as needs_rebuild:
|
||||||
if needs_rebuild:
|
if needs_rebuild:
|
||||||
@ -288,6 +289,10 @@ def install(make_args, show_build_environment, use_precompiled_dyngen, build_jit
|
|||||||
sheepshaver_configure_options.append("--enable-vosf=no")
|
sheepshaver_configure_options.append("--enable-vosf=no")
|
||||||
run([msys_bash, "./configure", "--with-gtk=no"] + sheepshaver_configure_options,
|
run([msys_bash, "./configure", "--with-gtk=no"] + sheepshaver_configure_options,
|
||||||
cwd=script_path, env=configure_macemu_env)
|
cwd=script_path, env=configure_macemu_env)
|
||||||
|
did_configure = True
|
||||||
|
|
||||||
|
if did_configure:
|
||||||
|
run([make_bin, "clean"], cwd=script_path, env=our_env)
|
||||||
|
|
||||||
sheepshaver_make_args = list(make_args)
|
sheepshaver_make_args = list(make_args)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user