2021-09-26 19:59:51 +03:00
|
|
|
|
|
|
|
.PHONY : checklines
|
|
|
|
checklines :
|
|
|
|
@grep '.\{81,\}' \
|
|
|
|
--exclude-dir=src/fix-whitespace \
|
|
|
|
-l --recursive src; \
|
|
|
|
status=$$?; \
|
|
|
|
if [ $$status = 0 ] ; \
|
|
|
|
then echo "Lines were found with more than 80 characters!"; \
|
|
|
|
else echo "Succeed!"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.PHONY : hlint
|
|
|
|
hlint :
|
|
|
|
hlint src
|
|
|
|
|
|
|
|
.PHONY : doc
|
|
|
|
doc :
|
|
|
|
cabal haddock --enable-documentation
|
|
|
|
|
|
|
|
.PHONY : build
|
|
|
|
build :
|
|
|
|
cabal build all
|
|
|
|
|
2021-10-18 20:25:26 +03:00
|
|
|
.PHONY : gen
|
|
|
|
gen :
|
|
|
|
agda2hs ./src/MiniJuvix/Syntax/Core.agda -o src -X UnicodeSyntax
|
2021-10-19 11:09:25 +03:00
|
|
|
agda2hs ./src/MiniJuvix/Syntax/Eval.agda -o src -X UnicodeSyntax
|
2021-10-18 20:25:26 +03:00
|
|
|
|
2021-09-26 19:59:51 +03:00
|
|
|
.PHONY : stan
|
|
|
|
stan :
|
|
|
|
stan check --include --filter-all --directory=src
|