mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 14:45:51 +03:00
30 lines
604 B
Makefile
30 lines
604 B
Makefile
|
|
all: clean build
|
|
|
|
haddock_opt = --hyperlink-source --haddock-options=--css=../devel/black.css
|
|
|
|
build:
|
|
cabal configure
|
|
cabal build --ghc-option=-Wall
|
|
cabal haddock $(haddock_opt)
|
|
|
|
haddock:
|
|
cabal configure
|
|
cabal haddock $(haddock_opt)
|
|
|
|
check:
|
|
cabal check
|
|
|
|
wc:
|
|
make clean-hs
|
|
test ! -d src || find src -name '*.hs' | xargs wc
|
|
|
|
clean:
|
|
make clean-hs
|
|
cabal clean
|
|
[ ! -d .debian-build ] || rm -r .debian-build
|
|
test ! -d src || find src \( -name '*.o' -o -name '*.hi' -o -name '*.dyn_o' -o -name '*.dyn_hi' \) -exec rm {} \;
|
|
|
|
clean-hs:
|
|
test ! -d src || find src -name '*_flymake.hs' -exec rm {} \;
|