]> git.phdru.name Git - mimedecode.git/blobdiff - Makefile
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[mimedecode.git] / Makefile
index 6984546f5a671f5935ce978db0be66f81b924266..4a90c042ae0a85dd765dbc1f0f7ba63b55c7791d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,21 @@
 
-VERSION=$(shell python -c "from mimedecode import _version; print _version")
+.PHONY: all
+all: docs test clean distr
 
-all: docs sdist
 
-DISTFILES = mimedecode.py \
-setup.py \
-Makefile \
-Makefile.sgmlt \
-Makefile.4xslt \
-MANIFEST.in \
-ANNOUNCE \
-mimedecode.docbook \
-mimedecode.html \
-mimedecode.man \
-mimedecode.txt
+.PHONY: docs
+docs:
+       make -C docs html man text
 
-.PHONY: sdist
-sdist: dist/mimedecode-$(VERSION).tar.gz
 
-.PHONY: dist
-dist/mimedecode-$(VERSION).tar.gz: $(DISTFILES)
-       umask 022 && chmod a+rX $(DISTFILES) && python setup.py sdist
+.PHONY: distr
+distr:
+       ./mk-distr
 
-.PHONY: docs
-docs: mimedecode.man mimedecode.txt mimedecode.html
 
-include Makefile.xsltproc
+.PHONY: test
+test:
+       make -C test all
 
 
 CLEANFILES = *.py[co] MANIFEST
@@ -33,7 +23,4 @@ CLEANFILES = *.py[co] MANIFEST
 .PHONY: clean
 clean:
        rm -f $(CLEANFILES)
-
-.PHONY: distclean
-distclean: clean
-       rm -rf dist
+       make -C test clean