2006-12-02 22:02:56 +01:00
|
|
|
# Copyright (C) 2002 - 2006 John Goerzen
|
2002-06-19 07:22:21 +02:00
|
|
|
# <jgoerzen@complete.org>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2003-04-16 21:23:45 +02:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2002-06-19 07:22:21 +02:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2006-08-12 06:15:55 +02:00
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2006-05-15 03:59:52 +02:00
|
|
|
|
2006-12-02 21:59:02 +01:00
|
|
|
VERSION=4.0.16
|
2006-05-15 03:59:52 +02:00
|
|
|
TARGZ=offlineimap_$(VERSION).tar.gz
|
2002-07-12 08:43:07 +02:00
|
|
|
SHELL=/bin/bash
|
2002-06-19 07:22:21 +02:00
|
|
|
|
|
|
|
clean:
|
2006-12-06 04:24:11 +01:00
|
|
|
-python setup.py clean --all
|
2002-06-19 07:22:21 +02:00
|
|
|
-rm -f `find . -name "*~"`
|
2003-01-07 04:47:15 +01:00
|
|
|
-rm -f `find . -name "*.tmp"`
|
|
|
|
-rm -f bin/offlineimapc
|
2002-06-19 07:22:21 +02:00
|
|
|
-rm -f `find . -name "*.pyc"`
|
2002-06-22 06:46:25 +02:00
|
|
|
-rm -f `find . -name "*.pygc"`
|
|
|
|
-rm -f `find . -name "*.class"`
|
|
|
|
-rm -f `find . -name "*.bak"`
|
|
|
|
-rm -f `find . -name ".cache*"`
|
2006-10-18 02:18:27 +02:00
|
|
|
-rm -f manpage.links manpage.refs
|
2002-07-18 00:55:52 +02:00
|
|
|
-find . -name auth -exec rm -vf {}/password {}/username \;
|
2011-01-15 16:48:30 +01:00
|
|
|
-rm -f readme.html
|
|
|
|
@$(MAKE) -C docs clean
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2011-01-15 16:48:30 +01:00
|
|
|
man:
|
|
|
|
@$(MAKE) -C docs man
|
2003-01-09 00:03:58 +01:00
|
|
|
|
2011-01-16 14:40:38 +01:00
|
|
|
doc:
|
2011-01-15 16:48:30 +01:00
|
|
|
@$(MAKE) -C docs
|
|
|
|
rst2html.py README.rst readme.html
|
2011-01-16 15:05:18 +01:00
|
|
|
rst2html.py SubmittingPatches.rst SubmittingPatches.html
|
2011-01-16 14:40:38 +01:00
|
|
|
rst2html.py Changelog.rst Changelog.html
|
2006-12-02 22:02:56 +01:00
|
|
|
|
2006-05-15 03:59:52 +02:00
|
|
|
targz: ../$(TARGZ)
|
|
|
|
../$(TARGZ):
|
|
|
|
if ! pwd | grep -q "/offlineimap-$(VERSION)$$"; then \
|
|
|
|
echo "Containing directory must be called offlineimap-$(VERSION)"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2008-03-03 11:27:42 +01:00
|
|
|
pwd && cd .. && pwd && tar -zhcv --exclude '.git' -f $(TARGZ) offlineimap-$(VERSION)
|
2006-05-15 03:59:52 +02:00
|
|
|
|
|
|
|
rpm: targz
|
|
|
|
cd .. && sudo rpmbuild -ta $(TARGZ)
|