PACKAGE := squirrel

STACK_DEV_OPTIONS = --fast --ghc-options -Wwarn --file-watch

.DEFAULT_GOAL := all

all: build

FORCE:

grammar: ; $(MAKE) -C $@

clean:
	$(RM) vendor/*
	stack clean

build: grammar
	stack build $(STACK_DEV_OPTIONS)

.PHONY: all clean grammar build FORCE