2002-04-12 14:46:09 +00:00
|
|
|
|
2006-10-14 20:59:14 +00:00
|
|
|
VERSION=$(shell python setup.py --version)
|
2002-04-13 11:36:32 +00:00
|
|
|
VERSION_TAG=v$(subst .,_,$(VERSION))
|
2002-04-19 07:12:49 +00:00
|
|
|
TARFILE=archivemail-$(VERSION).tar.gz
|
2007-10-24 11:30:00 +00:00
|
|
|
SVNROOT=https://archivemail.svn.sourceforge.net/svnroot/archivemail
|
2007-11-07 23:59:45 +00:00
|
|
|
HTDOCS=htdocs-$(VERSION)
|
2002-04-12 14:46:09 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
@echo "no default target"
|
|
|
|
|
|
|
|
clean:
|
2002-04-13 11:36:32 +00:00
|
|
|
rm -f *.pyc manpage.links manpage.refs manpage.log
|
2007-11-07 23:59:45 +00:00
|
|
|
rm -rf $(HTDOCS)
|
2002-04-12 14:46:09 +00:00
|
|
|
|
2002-04-17 06:26:31 +00:00
|
|
|
test:
|
|
|
|
python test_archivemail.py
|
|
|
|
|
2002-04-12 14:46:09 +00:00
|
|
|
clobber: clean
|
|
|
|
rm -rf build dist
|
2007-11-07 23:59:45 +00:00
|
|
|
rm -f $(HTDOCS).tgz
|
2002-04-12 14:46:09 +00:00
|
|
|
|
2002-04-23 03:01:26 +00:00
|
|
|
|
2002-04-17 06:26:31 +00:00
|
|
|
sdist: clobber doc
|
2002-04-12 14:46:09 +00:00
|
|
|
cp archivemail.py archivemail
|
2006-10-14 20:30:14 +00:00
|
|
|
python setup.py sdist
|
2002-04-12 14:46:09 +00:00
|
|
|
rm archivemail
|
2002-05-07 12:14:29 +00:00
|
|
|
|
2006-10-14 20:57:29 +00:00
|
|
|
# FIXME: bdist_rpm chokes on the manpage.
|
2007-11-06 23:45:21 +00:00
|
|
|
# This is python/distutils bug #644744
|
2006-10-14 20:57:29 +00:00
|
|
|
#bdist_rpm: clobber doc
|
|
|
|
# cp archivemail.py archivemail
|
|
|
|
# python setup.py bdist_rpm
|
|
|
|
# rm archivemail
|
2002-05-07 12:14:29 +00:00
|
|
|
|
2002-04-12 14:46:09 +00:00
|
|
|
tag:
|
2006-10-14 19:37:08 +00:00
|
|
|
# Overwriting tags at least doesn't work with svn << 1.4,
|
|
|
|
# it silently creates a new subidr. It *may* work with
|
|
|
|
# svn 1.4, I haven't tested it. See svn bug #2188.
|
|
|
|
#cvs tag -F current
|
|
|
|
@if svn list "$(SVNROOT)/tags" | grep -qx "$(VERSION_TAG)/\?"; then \
|
|
|
|
echo "Tag '$(VERSION_TAG)' already exists, aborting"; \
|
|
|
|
else \
|
|
|
|
svn copy . "$(SVNROOT)/tags/$(VERSION_TAG)"; \
|
|
|
|
fi
|
2002-04-13 11:36:32 +00:00
|
|
|
|
2002-04-19 07:12:49 +00:00
|
|
|
upload:
|
|
|
|
(cd dist && lftp -c 'open upload.sf.net && cd incoming && put $(TARFILE)')
|
|
|
|
|
2002-04-23 03:01:26 +00:00
|
|
|
doc: archivemail.1 archivemail.html
|
|
|
|
|
2007-11-08 18:23:15 +00:00
|
|
|
htdocs: $(HTDOCS).tgz
|
|
|
|
$(HTDOCS).tgz: index.html archivemail.html RELNOTES style.css manpage.css
|
2007-11-07 23:59:45 +00:00
|
|
|
install -d -m 775 $(HTDOCS)
|
|
|
|
install -m 664 $^ $(HTDOCS)
|
|
|
|
cd $(HTDOCS) && mv archivemail.html manpage.html
|
|
|
|
tar czf $(HTDOCS).tgz $(HTDOCS)
|
|
|
|
|
2002-04-12 14:46:09 +00:00
|
|
|
archivemail.1: archivemail.sgml
|
2002-10-03 06:27:08 +00:00
|
|
|
docbook2man archivemail.sgml
|
2002-04-12 14:57:05 +00:00
|
|
|
chmod 644 archivemail.1
|
2002-04-13 11:36:32 +00:00
|
|
|
|
2007-11-04 22:13:59 +00:00
|
|
|
archivemail.html: archivemail.sgml db2html.dsl
|
|
|
|
docbook2html --dsl db2html.dsl -u archivemail.sgml
|
2002-04-13 11:36:32 +00:00
|
|
|
chmod 644 archivemail.html
|
2007-11-06 23:49:47 +00:00
|
|
|
tidy -modify -indent -f /dev/null archivemail.html || true
|
2007-11-08 18:09:45 +00:00
|
|
|
|
|
|
|
.PHONY: clean test clobber sdist tag upload doc htdocs
|