]> git.phdru.name Git - mimedecode.git/blobdiff - Makefile
by.ru has revived phd.by.ru mirror.
[mimedecode.git] / Makefile
index cc1ddb8a274557d2f18820cc9f5817045b01e794..58d8bcfdab1515a70d5707dba765655df6aeea7f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@
 all: docs sdist
 
 DISTFILES = mimedecode.py \
-mimedecode1.py \
 setup.py \
 Makefile \
 Makefile.sgmlt \
@@ -14,21 +13,25 @@ mimedecode.html \
 mimedecode.man \
 mimedecode.txt
 
+.PHONY: sdist
 sdist: dist/mimedecode-2.1.0.tar.gz
-       touch sdist
 
+.PHONY: dist
 dist/mimedecode-2.1.0.tar.gz: $(DISTFILES)
-       umask 022 && python setup.py sdist
+       umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist
 
+.PHONY: docs
 docs: mimedecode.man mimedecode.txt mimedecode.html
 
 include Makefile.4xslt
 
 
-CLEANFILES = mimedecode.pyc MANIFEST sdist
+CLEANFILES = *.py[co] MANIFEST
 
+.PHONY: clean
 clean:
        rm -f $(CLEANFILES)
 
+.PHONY: distclean
 distclean: clean
-       rm -rf dist sdist
+       rm -rf dist