2013-03-25 12:26:23 +04:00
|
|
|
|
2013-05-21 06:35:21 +04:00
|
|
|
all: clean build
|
|
|
|
|
2013-06-11 15:19:28 +04:00
|
|
|
haddock_opt = --hyperlink-source --haddock-options=--css=../devel/black.css
|
|
|
|
|
2013-05-21 06:35:21 +04:00
|
|
|
build:
|
2013-03-25 12:26:23 +04:00
|
|
|
cabal configure
|
2013-05-27 12:12:55 +04:00
|
|
|
cabal build --ghc-option=-Wall
|
2013-06-11 15:19:28 +04:00
|
|
|
cabal haddock $(haddock_opt)
|
|
|
|
|
|
|
|
haddock:
|
|
|
|
cabal configure
|
|
|
|
cabal haddock $(haddock_opt)
|
2013-03-25 12:26:23 +04:00
|
|
|
|
2013-05-30 12:13:56 +04:00
|
|
|
check:
|
|
|
|
cabal check
|
|
|
|
|
2013-05-09 09:04:15 +04:00
|
|
|
wc:
|
2015-11-11 05:47:13 +03:00
|
|
|
make clean-hs
|
2013-05-13 14:24:31 +04:00
|
|
|
test ! -d src || find src -name '*.hs' | xargs wc
|
2013-05-09 09:04:15 +04:00
|
|
|
|
2013-03-25 12:26:23 +04:00
|
|
|
clean:
|
2015-11-11 05:47:13 +03:00
|
|
|
make clean-hs
|
2013-03-25 12:26:23 +04:00
|
|
|
cabal clean
|
2014-08-13 10:30:42 +04:00
|
|
|
[ ! -d .debian-build ] || rm -r .debian-build
|
2017-01-22 07:21:54 +03:00
|
|
|
[ ! -d .stack-work ] || rm -r .stack-work
|
2016-02-09 03:17:49 +03:00
|
|
|
test ! -d src || find src \( -name '*.o' -o -name '*.hi' -o -name '*.dyn_o' -o -name '*.dyn_hi' \) -exec rm {} \;
|
2015-11-11 05:47:13 +03:00
|
|
|
|
|
|
|
clean-hs:
|
|
|
|
test ! -d src || find src -name '*_flymake.hs' -exec rm {} \;
|