BUILD=cabal docs
HC=ghc
PROJ=Codec-Compression-LZF
build: $(BUILD)
cabal: setup $(PROJ).cabal
./setup configure
./setup build
docs: doc/index.html
doc/index.html: setup $(PROJ).cabal
test -f .setup-config || ./setup configure
mkdir doc || echo doc directory exists
which cpphs && which haddock && ./setup haddock && cp -a dist/doc/html/* doc/
install:
./setup install
distrib:
darcs dist --dist-name $(PROJ)-`egrep -i "^version\s*:" $(PROJ).cabal | cut -d: -f2 | tr -d ' \t'`
setup: Setup.lhs
$(HC) --make -package Cabal Setup.lhs -o setup
rm -f Setup.hi Setup.o
clean:
./setup clean
distclean: clean
rm -rf autom4te.cache dist doc
rm -f Setup.hi Setup.o setup
rm -f config.log config.status
cd example && make distclean
allclean: distclean