]> code.delx.au - offlineimap/blob - Makefile
Clarified and highlighted the need to set maxsyncaccounts to sync more
[offlineimap] / Makefile
1 # Copyright (C) 2002 - 2006 John Goerzen
2 # <jgoerzen@complete.org>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18 VERSION=4.0.16
19 TARGZ=offlineimap_$(VERSION).tar.gz
20 SHELL=/bin/bash
21
22 clean:
23 -python setup.py clean --all
24 -rm -f `find . -name "*~"`
25 -rm -f `find . -name "*.tmp"`
26 -rm -f bin/offlineimapc
27 -rm -f `find . -name "*.pyc"`
28 -rm -f `find . -name "*.pygc"`
29 -rm -f `find . -name "*.class"`
30 -rm -f `find . -name "*.bak"`
31 -rm -f `find . -name ".cache*"`
32 -rm -f manpage.links manpage.refs
33 -find . -name auth -exec rm -vf {}/password {}/username \;
34 -rm -f manual.html manual.pdf manual.txt offlineimap.1
35
36 doc:
37 docbook2man offlineimap.sgml
38 docbook2man offlineimap.sgml
39 docbook2html -u offlineimap.sgml
40 mv offlineimap.html manual.html
41 man -t -l offlineimap.1 > manual.ps
42 ps2pdf manual.ps
43 groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt
44 -rm manpage.links manpage.refs manual.ps
45
46 faq:
47 curl -o FAQ.html http://software.complete.org/offlineimap/wiki/FrequentlyAskedQuestions
48
49 targz: ../$(TARGZ)
50 ../$(TARGZ):
51 if ! pwd | grep -q "/offlineimap-$(VERSION)$$"; then \
52 echo "Containing directory must be called offlineimap-$(VERSION)"; \
53 exit 1; \
54 fi; \
55 pwd && cd .. && pwd && tar -zhcv --exclude '.git' -f $(TARGZ) offlineimap-$(VERSION)
56
57 rpm: targz
58 cd .. && sudo rpmbuild -ta $(TARGZ)