all:
	stack build

release:
	stack install --flag coreutils:release


.PHONY: ready test format lint profile
ready: format lint test

unittest:
	stack test

test:
	stack test
	bash test/integration/all.sh

format:
	stylish-haskell -i */*.hs

lint:
	hlint -j */*.hs

profile:
	stack build --flag coreutils:release --profile
	@echo
	@echo run 'stack exec -- <program> +RTS -p'
