diff --git a/Makefile b/Makefile index 968f8a54..3be1dd02 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,7 @@ cleanlist: @git clean -dnx ${ROOT_CLEAN_IGNORES} # Tell make which of these targets don't represent files. -.PHONY: list prereqs prereqs-clean assets assets-cmake assests-win \ +.PHONY: list prereqs prereqs-clean assets assets-cmake assets-win \ assets-mac assets-ios assets-android assets-clean \ resources resources-clean code code-clean\ clean cleanlist diff --git a/tools/snippets b/tools/snippets index 8373fa38..eaa11385 100755 --- a/tools/snippets +++ b/tools/snippets @@ -359,10 +359,11 @@ def check_clean_safety() -> None: # Then also make sure there are no untracked changes to core files # (since we may be blowing core away here). - status = os.system( - os.path.join(str(PROJROOT), 'tools', 'spinoff') + ' cleancheck') - if status != 0: - sys.exit(255) + spinoff_bin = os.path.join(str(PROJROOT), 'tools', 'spinoff') + if os.path.exists(spinoff_bin): + status = os.system(spinoff_bin + ' cleancheck') + if status != 0: + sys.exit(255) def get_master_asset_src_dir() -> None: