]> code.delx.au - offlineimap/blob - Makefile
22792082a4b3f7eb57a8514c651dd35405233a5a
[offlineimap] / Makefile
1 # Copyright (c) 2004-2008 John Goerzen
2 #
3
4 all: setup # GHC build
5 ./setup configure
6 ./setup build
7
8 doc: lib/dfs.html/index.html lib/dfs.pdf lib/dfs.ps lib/dfs.txt
9
10 hugsbuild: setup
11 ./setup configure --hugs
12 ./setup build
13
14 setup: Setup.lhs OfflineIMAP.cabal
15 ghc -package Cabal Setup.lhs -o setup
16
17 clean: clean-code clean-doc
18
19 clean-code:
20 -./setup clean
21 -cd libsrc && ../setup clean
22 -rm -rf dist libsrc/dist *.ho *.hi *.o *.a setup *~
23 -rm -f `find . -name "*~"` `find . -name "*.o"`
24 -rm -f `find . -name "*.cm*"`
25
26 clean-doc:
27 -cd doc && scons -c && scons -c html pdf text ps
28 -rm -rf doc/.sconsign* .depend test
29 -rm -f doc/manpage* doc/*.1