1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-21 23:32:54 +00:00

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
This commit is contained in:
Nikolaus Schulz 2011-03-28 23:55:22 +02:00
parent 8173caa81d
commit 39e6a532d0

View file

@ -1,4 +1,3 @@
VERSION=$(shell python setup.py --version) VERSION=$(shell python setup.py --version)
VERSION_TAG=v$(subst .,_,$(VERSION)) VERSION_TAG=v$(subst .,_,$(VERSION))
TARFILE=archivemail-$(VERSION).tar.gz TARFILE=archivemail-$(VERSION).tar.gz
@ -8,7 +7,6 @@ default:
@echo "no default target" @echo "no default target"
clean: clean:
rm -f manpage.links manpage.refs manpage.log
rm -rf $(HTDOCS) rm -rf $(HTDOCS)
test: test:
@ -22,17 +20,9 @@ clobber: clean
sdist: clobber doc sdist: clobber doc
python setup.py sdist 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: tag:
git tag -a $(VERSION_TAG) git tag -a $(VERSION_TAG)
upload:
(cd dist && lftp -c 'open upload.sf.net && cd incoming && put $(TARFILE)')
doc: archivemail.1 archivemail.html doc: archivemail.1 archivemail.html
htdocs: $(HTDOCS).tgz htdocs: $(HTDOCS).tgz
@ -50,4 +40,4 @@ archivemail.html: archivemail.xml db2html.xsl
db2html.xsl archivemail.xml db2html.xsl archivemail.xml
tidy -modify -indent -f /dev/null archivemail.html || true tidy -modify -indent -f /dev/null archivemail.html || true
.PHONY: clean test clobber sdist tag upload doc htdocs .PHONY: default clean test clobber sdist tag doc htdocs