summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libedit/Makefile.inc8
-rw-r--r--regress/lib/libedit/read/Makefile13
2 files changed, 10 insertions, 11 deletions
diff --git a/regress/lib/libedit/Makefile.inc b/regress/lib/libedit/Makefile.inc
index b3d42faef59..3523a99edc5 100644
--- a/regress/lib/libedit/Makefile.inc
+++ b/regress/lib/libedit/Makefile.inc
@@ -1,12 +1,10 @@
-# $OpenBSD: Makefile.inc,v 1.3 2017/07/05 15:31:45 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2019/05/10 15:36:19 bluhm Exp $
TOPSRC= ${.CURDIR}/../../../../lib/libedit
TOPOBJ!!= ${MAKE} -C ${TOPSRC} -V .OBJDIR
CFLAGS+= -I${TOPSRC} -I${TOPOBJ}
-CLEANFILES+= stamp-generated
-${PROG}: stamp-generated
+${PROG} ${PROGS}: ${TOPOBJ}/common.h
-stamp-generated:
+${TOPOBJ}/common.h:
${MAKE} -C ${TOPSRC} generated
- date >$@
diff --git a/regress/lib/libedit/read/Makefile b/regress/lib/libedit/read/Makefile
index ac9b82fd4b7..fbc7a5e1eca 100644
--- a/regress/lib/libedit/read/Makefile
+++ b/regress/lib/libedit/read/Makefile
@@ -1,15 +1,16 @@
-# $OpenBSD: Makefile,v 1.8 2017/07/05 15:31:45 bluhm Exp $
+# $OpenBSD: Makefile,v 1.9 2019/05/10 15:36:19 bluhm Exp $
#
# Author: Ingo Schwarze <schwarze@openbsd.org>, 2016. Public Domain.
-REGRESS_TARGETS = getcmd read_char
+PROGS = test_read_char test_getcmd
+CLEANFILES += out_getcmd.txt
-CLEANFILES += test_read_char test_getcmd out_getcmd.txt
-
-read_char: stamp-generated test_read_char
+REGRESS_TARGETS += run-read_char
+run-read_char: test_read_char
sh ${.CURDIR}/test_read_char.sh
-getcmd: stamp-generated test_getcmd
+REGRESS_TARGETS += run-getcmd
+run-getcmd: test_getcmd
echo -n s | ./test_getcmd > out_getcmd.txt
diff -u ${.CURDIR}/exp_getcmd.txt out_getcmd.txt