all: build

clean:
	@./dist/build/Cooking/Cooking clean > /dev/null 2>&1 || true
	@cabal clean > /dev/null

install:
	@cabal build

.PHONY: build
build:
	@cabal run build

watch:
	@nodemon --watch src -e hs --exec 'make watch-command --silent'

watch-command:
	@(killall Cooking || :) && sleep 1 && cabal run watch