summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/usr.bin/sed/Makefile28
1 files changed, 18 insertions, 10 deletions
diff --git a/regress/usr.bin/sed/Makefile b/regress/usr.bin/sed/Makefile
index cab6dabe73a..2b73e5e06ad 100644
--- a/regress/usr.bin/sed/Makefile
+++ b/regress/usr.bin/sed/Makefile
@@ -1,17 +1,25 @@
-# $OpenBSD: Makefile,v 1.1 2008/10/10 14:33:34 millert Exp $
+# $OpenBSD: Makefile,v 1.2 2008/10/13 13:27:33 millert Exp $
# $NetBSD: Makefile,v 1.1 2005/04/04 16:48:45 peter Exp $
SED= /usr/bin/sed
-regress:
- sh ${.CURDIR}/sedtest.sh ${SED} sedtest.out
- diff ${.CURDIR}/sedtest.expected sedtest.out
- printf ":abcd: : :\n\n" | ${SED} -f ${.CURDIR}/hanoi.sed > hanoi.out
- diff ${.CURDIR}/hanoi.expected hanoi.out
- ${SED} -f ${.CURDIR}/math.sed ${.CURDIR}/math.in > math.out
- diff ${.CURDIR}/math.expected math.out
- echo ________________________X___ | ${SED} -nf ${.CURDIR}/sierpinski.sed > sierpinski.out
- diff ${.CURDIR}/sierpinski.expected sierpinski.out
+REGRESS_TARGETS= sedtest hanoi math sierpinski
+
+sedtest:
+ sh ${.CURDIR}/$@.sh ${SED} $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+hanoi:
+ ${SED} -f ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+math:
+ ${SED} -f ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
+
+sierpinski:
+ ${SED} -nf ${.CURDIR}/$@.sed ${.CURDIR}/$@.in > $@.out
+ diff ${.CURDIR}/$@.expected $@.out
CLEANFILES+=*.out lines* script*