summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-18 15:29:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-18 15:29:39 +0000
commite1f927b6ebee2fc440a7aa4e80a85a295067da2d (patch)
treeda1b86af16516b1791a0788ec4ab5bd45f37ae4d /Makefile
parente0f83fe17d6cd87f02accf47e584092ec5126d59 (diff)
downloadmandoc-e1f927b6ebee2fc440a7aa4e80a85a295067da2d.tar.gz
add some regress targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fda09f34..8b5a0ea7 100644
--- a/Makefile
+++ b/Makefile
@@ -477,6 +477,12 @@ uninstall:
rm -f $(DESTDIR)$(INCLUDEDIR)/roff.h
rmdir $(DESTDIR)$(INCLUDEDIR)
+regress: all
+ cd regress && ./regress.pl
+
+regress-clean:
+ cd regress && ./regress.pl . clean
+
Makefile.local config.h: configure $(TESTSRCS)
@echo "$@ is out of date; please run ./configure"
@exit 1
@@ -523,6 +529,28 @@ depend: config.h
Makefile.depend > Makefile.tmp
mv Makefile.tmp Makefile.depend
+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_lint' \
+ ! -path regress/regress.pl \
+ ! -path regress/regress.pl.1
+
dist: mdocml.sha256
mdocml.sha256: mdocml.tar.gz