mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-15 14:53:28 +03:00
25 lines
446 B
Makefile
25 lines
446 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:
|
|
test ! -d src || find src -name '*.hs' | xargs wc
|
|
|
|
clean:
|
|
cabal clean
|
|
[ ! -d .dWork ] || rm -r .dWork
|
|
test ! -d src || find src \( -name '*.o' -o -name '*.hi' \) -exec rm {} \;
|