]> git.cameronkatri.com Git - mandoc.git/commitdiff
add some regress targets
authorIngo Schwarze <schwarze@openbsd.org>
Sat, 18 Feb 2017 15:29:39 +0000 (15:29 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sat, 18 Feb 2017 15:29:39 +0000 (15:29 +0000)
Makefile

index 53dc2354721977e2dd12fc805a044a6ba74cb87c..c11fe465940f945855ddd6b4fbbca8e46a5cae98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.503 2017/02/18 13:05:43 schwarze Exp $
+# $Id: Makefile,v 1.504 2017/02/18 15:29:39 schwarze Exp $
 #
 # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
 # Copyright (c) 2011, 2013-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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