blob: f803e599e9e645b1ad810ce2c3a9565e871e4925 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
VERSION=$(shell python setup.py --version)
VERSION_TAG=v$(subst .,_,$(VERSION))
TARFILE=archivemail-$(VERSION).tar.gz
HTDOCS=htdocs-$(VERSION)
default:
@echo "no default target"
clean:
rm -f manpage.links manpage.refs manpage.log
rm -rf $(HTDOCS)
test:
python test_archivemail
clobber: clean
rm -rf build dist
rm -f $(HTDOCS).tgz
sdist: clobber doc
python setup.py sdist
# FIXME: bdist_rpm chokes on the manpage.
# This is python/distutils bug #644744
#bdist_rpm: clobber doc
# python setup.py bdist_rpm
tag:
git tag -a $(VERSION_TAG)
upload:
(cd dist && lftp -c 'open upload.sf.net && cd incoming && put $(TARFILE)')
doc: archivemail.1 archivemail.html
htdocs: $(HTDOCS).tgz
$(HTDOCS).tgz: index.html archivemail.html RELNOTES style.css manpage.css
install -d -m 775 $(HTDOCS)
install -m 664 $^ $(HTDOCS)
cd $(HTDOCS) && mv archivemail.html manpage.html
tar czf $(HTDOCS).tgz $(HTDOCS)
archivemail.1: archivemail.xml db2man.xsl
xsltproc db2man.xsl archivemail.xml
archivemail.html: archivemail.xml db2html.xsl
xsltproc --output archivemail.html \
db2html.xsl archivemail.xml
tidy -modify -indent -f /dev/null archivemail.html || true
.PHONY: clean test clobber sdist tag upload doc htdocs
|