build ::
	swift build

test ::
	swift test --enable-code-coverage

coverage_report ::
	/usr/local/opt/llvm/bin/llvm-cov show \
		-format html \
		-project-title="CutBox CLI" \
		-output-dir=../docs/CLI \
		-coverage-watermark="60.0,25.0" \
		-ignore-filename-regex="checkouts|CutBoxCLITests|Mock|Output\.swift" \
		-instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata \
		.build/x86_64-apple-macosx/debug/CutBoxCLIPackageTests.xctest/Contents/MacOS/CutBoxCLIPackageTests
		cp ../docs/customized.css ../docs/CLI/style.css

test_bin :: build
	cp .build/x86_64-apple-macosx/debug/CutBoxCLI ../test_bin/cutbox

dmg_bin :: build
	cp .build/x86_64-apple-macosx/debug/CutBoxCLI ../CutBox/build/cutbox

install :: build
	cp .build/x86_64-apple-macosx/debug/CutBoxCLI /usr/local/bin/cutbox

clean ::
	swift package clean
