.PHONY: help build run test app clean

CONFIG ?= release

help:
	@echo "make build   # swift build -c $(CONFIG)"
	@echo "make run     # swift run -c $(CONFIG) CxWebAppMac"
	@echo "make test    # swift test"
	@echo "make app     # bundle into build/CxWebAppMac.app"
	@echo "make clean"

build:
	swift build -c $(CONFIG)

run:
	swift run -c $(CONFIG) CxWebAppMac

test:
	swift test

app:
	bash scripts/build-app.sh

clean:
	rm -rf .build build
