1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-21 15:22:59 +00:00
archivemail/Makefile
Nikolaus Schulz 39e6a532d0 Makefile: remove obsolete rules
* docbook2{man,html} used to generate temporary files; the new XML tool
  xsltproc does not, so we can drop the corresponding cleanup rule.
* The `bdist_rpm' rule for building rpm packages was broken for a long
  time, and therefore commented out.  The distutils bug that broke the
  rule is now fixed, but I'm removing the rule nevertheless because it's
  useless.
* The `upload' rule no longer works; drop it.
* Update .PHONY
2011-03-28 23:55:22 +02:00

43 lines
961 B
Makefile

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 -rf $(HTDOCS)
test:
python test_archivemail
clobber: clean
rm -rf build dist
rm -f $(HTDOCS).tgz
sdist: clobber doc
python setup.py sdist
tag:
git tag -a $(VERSION_TAG)
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: default clean test clobber sdist tag doc htdocs