turbo.scm.go: turbo.scm
	guild compile -o turbo.scm.go turbo.scm

.PHONY: play
play: turbo.scm.go
	guile -C . --no-auto-compile turbo.scm

.venv:
	python3 -m venv .venv

.venv/bin/appimage-builder: .venv
	.venv/bin/pip install appimage-builder

.PHONY: appimage-builder
appimage-builder: .venv/bin/appimage-builder

turbo-racer-3000-latest-x86_64.AppImage: .venv turbo.scm.go
	.venv/bin/appimage-builder

.PHONY: bundle
bundle: turbo-racer-3000-latest-x86_64.AppImage

.PHONY: clean
clean:
	rm -rf chickadee*
	rm -rf guile-opengl*
	rm -rf guile-sdl2*
	rm -rf AppDir
	rm -rf build-dir builddir

.PHONY: deepclean
deepclean: clean
	rm -rf .venv