X-Git-Url: https://code.delx.au/offlineimap/blobdiff_plain/aabe612a967d0277087385842bc80ba76e5704a8..c046383dc2499b2af2887a4f436c3eda4c544444:/Makefile diff --git a/Makefile b/Makefile index a2e3529..3fcf425 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 2002 John Goerzen +# Copyright (C) 2002 - 2006 John Goerzen # # # This program is free software; you can redistribute it and/or modify @@ -13,11 +13,14 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +VERSION=4.0.16 +TARGZ=offlineimap_$(VERSION).tar.gz SHELL=/bin/bash clean: - -python2.3 setup.py clean --all + -python setup.py clean --all -rm -f `find . -name "*~"` -rm -f `find . -name "*.tmp"` -rm -f bin/offlineimapc @@ -26,11 +29,11 @@ clean: -rm -f `find . -name "*.class"` -rm -f `find . -name "*.bak"` -rm -f `find . -name ".cache*"` - -rm manpage.links - -rm manpage.refs + -rm -f manpage.links manpage.refs -find . -name auth -exec rm -vf {}/password {}/username \; + -rm -f manual.html manual.pdf manual.txt offlineimap.1 -doc: +doc: docbook2man offlineimap.sgml docbook2man offlineimap.sgml docbook2html -u offlineimap.sgml @@ -38,5 +41,18 @@ doc: man -t -l offlineimap.1 > manual.ps ps2pdf manual.ps groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt - -rm manpage.links manpage.refs + -rm manpage.links manpage.refs manual.ps + +faq: + curl -o FAQ.html http://software.complete.org/offlineimap/wiki/FrequentlyAskedQuestions + +targz: ../$(TARGZ) +../$(TARGZ): + if ! pwd | grep -q "/offlineimap-$(VERSION)$$"; then \ + echo "Containing directory must be called offlineimap-$(VERSION)"; \ + exit 1; \ + fi; \ + pwd && cd .. && pwd && tar -zhcv --exclude '.git' -f $(TARGZ) offlineimap-$(VERSION) +rpm: targz + cd .. && sudo rpmbuild -ta $(TARGZ)