You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
667 B
41 lines
667 B
6 years ago
|
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
|
||
|
|