]> git.phdru.name Git - mimedecode.git/blobdiff - Makefile
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[mimedecode.git] / Makefile
index c27f3a27b88f219576ba0590c070df1712290bc1..4a90c042ae0a85dd765dbc1f0f7ba63b55c7791d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,26 @@
 
-all: docs sdist
+.PHONY: all
+all: docs test clean distr
 
-DISTFILES = mimedecode.py \
-setup.py \
-Makefile \
-Makefile.sgmlt \
-Makefile.4xslt \
-MANIFEST.in \
-ANNOUNCE \
-mimedecode.docbook \
-mimedecode.html \
-mimedecode.man \
-mimedecode.txt
 
-sdist: dist/mimedecode-2.1.0.tar.gz
-       touch sdist
+.PHONY: docs
+docs:
+       make -C docs html man text
 
-dist/mimedecode-2.1.0.tar.gz: $(DISTFILES)
-       umask 022 && python setup.py sdist
 
-docs: mimedecode.man mimedecode.txt mimedecode.html
+.PHONY: distr
+distr:
+       ./mk-distr
 
-include Makefile.4xslt
 
+.PHONY: test
+test:
+       make -C test all
 
-CLEANFILES = mimedecode.pyc MANIFEST sdist
 
+CLEANFILES = *.py[co] MANIFEST
+
+.PHONY: clean
 clean:
        rm -f $(CLEANFILES)
-
-distclean: clean
-       rm -rf dist sdist
+       make -C test clean