-dist: mdocml.sha256
-
-mdocml.sha256: mdocml.tar.gz
- sha256 mdocml.tar.gz > $@
-
-mdocml.tar.gz: $(DISTFILES)
+regress-distclean:
+ @find regress \
+ -name '.#*' -o \
+ -name '*.orig' -o \
+ -name '*.rej' -o \
+ -name '*.core' \
+ -exec rm -i {} \;
+
+regress-distcheck:
+ @find regress ! -type d ! -type f
+ @find regress -type f \
+ ! -path '*/CVS/*' \
+ ! -name Makefile \
+ ! -name Makefile.inc \
+ ! -name '*.in' \
+ ! -name '*.out_ascii' \
+ ! -name '*.out_utf8' \
+ ! -name '*.out_html' \
+ ! -name '*.out_markdown' \
+ ! -name '*.out_lint' \
+ ! -path regress/regress.pl \
+ ! -path regress/regress.pl.1
+
+dist: mandoc.sha256
+
+mandoc.sha256: mandoc.tar.gz
+ sha256 mandoc.tar.gz > $@
+
+mandoc.tar.gz: $(DISTFILES)