# Copyright (c) 2004-2008 John Goerzen # all: setup # GHC build ./setup configure ./setup build .PHONY: all doc: lib/dfs.html/index.html lib/dfs.pdf lib/dfs.ps lib/dfs.txt hugsbuild: setup ./setup configure --hugs ./setup build setup: Setup.lhs OfflineIMAP.cabal ghc -package Cabal Setup.lhs -o setup clean: clean-code clean-doc test: all dist/build/runtests/runtests clean-code: -./setup clean -cd libsrc && ../setup clean -rm -rf dist libsrc/dist *.ho *.hi *.o *.a setup *~ -rm -f `find . -name "*~"` `find . -name "*.o"` -rm -f `find . -name "*.cm*"` clean-doc: -cd doc && scons -c && scons -c html pdf text ps -rm -rf doc/.sconsign* .depend test -rm -f doc/manpage* doc/*.1