application = hhskills stack = stack hlint = hlint all: app docs build: app deps: $(stack) build --only-dependencies app: $(stack) build install: $(stack) install docs: $(stack) exec -- haddock --html --pretty-html src/*.hs app/Main.hs --hyperlinked-source --optghc=-DHADDOCK --odir=docs --show-all --use-unicode lint: hlint hlint: $(hlint) .; : check: $(stack) build --force-dirty --ghc-options="-Weverything" static: $(stack) build --force-dirty --ghc-options="-optl-static -optc-static" exec: $(stack) exec -- $(application) $(filter-out $@, $(MAKECMDGOALS)) run: exec %: @true .PHONY: build app docs all hlint static exec run check install