recompiling of the test programs. Add some RCS ids.
-# $OpenBSD: Makefile.inc,v 1.2 2017/07/04 21:56:05 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2017/07/05 15:31:45 bluhm Exp $
TOPSRC= ${.CURDIR}/../../../../lib/libedit
TOPOBJ!!= ${MAKE} -C ${TOPSRC} -V .OBJDIR
CFLAGS+= -I${TOPSRC} -I${TOPOBJ}
+CLEANFILES+= stamp-generated
-.PHONY: generated
+${PROG}: stamp-generated
-${PROG}: generated
-
-generated:
+stamp-generated:
${MAKE} -C ${TOPSRC} generated
+ date >$@
-# $OpenBSD: Makefile,v 1.4 2017/07/03 18:19:55 bluhm Exp $
+# $OpenBSD: Makefile,v 1.5 2017/07/05 15:31:45 bluhm Exp $
#
# Author: Ingo Schwarze <schwarze@openbsd.org>, 2016. Public Domain.
-REGRESS_TARGETS = gets
-
PROG = test_gets
CLEANFILES += out_gets.utf8 out_gets.ascii
-gets:
+run-regress-${PROG}:
LC_ALL=en_US.UTF-8 ./test_gets < ${.CURDIR}/inp_gets.txt > out_gets.utf8
diff -au ${.CURDIR}/exp_gets.utf8 out_gets.utf8
LC_ALL=C ./test_gets < ${.CURDIR}/inp_gets.txt > out_gets.ascii
+/* $OpenBSD: test_gets.c,v 1.4 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
+/* $OpenBSD: test_get.c,v 1.4 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
-# $OpenBSD: Makefile,v 1.7 2017/07/04 21:56:05 bluhm Exp $
+# $OpenBSD: Makefile,v 1.8 2017/07/05 15:31:45 bluhm Exp $
#
# Author: Ingo Schwarze <schwarze@openbsd.org>, 2016. Public Domain.
CLEANFILES += test_read_char test_getcmd out_getcmd.txt
-read_char: generated test_read_char
+read_char: stamp-generated test_read_char
sh ${.CURDIR}/test_read_char.sh
-getcmd: generated test_getcmd
+getcmd: stamp-generated test_getcmd
echo -n s | ./test_getcmd > out_getcmd.txt
diff -u ${.CURDIR}/exp_getcmd.txt out_getcmd.txt
+/* $OpenBSD: glue.c,v 1.4 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
+/* $OpenBSD: test_getcmd.c,v 1.8 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
+/* $OpenBSD: test_read_char.c,v 1.5 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
#!/bin/sh
+# $OpenBSD: test_read_char.sh,v 1.3 2017/07/05 15:31:45 bluhm Exp $
#
# Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
#
+/* $OpenBSD: history.c,v 1.7 2017/07/05 15:31:45 bluhm Exp $ */
/*
* Copyright (c) 2016 Bastian Maerkisch <bmaerkisch@web.de>
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
-# $OpenBSD: Makefile.inc,v 1.2 2017/07/04 18:02:21 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2017/07/05 15:31:45 bluhm Exp $
TOPSRC= ${.CURDIR}/../../../../sbin/isakmpd
TOPOBJ!!= ${MAKE} -C ${TOPSRC} -V .OBJDIR
CFLAGS+= -I${TOPSRC} -I${TOPSRC}/sysdep/openbsd -I${TOPOBJ} -Wall
DEBUG= -g
+CLEANFILES+= stamp-generated
-.PHONY: generated
+${PROG}: stamp-generated
-${PROG}: generated
-
-generated:
+stamp-generated:
${MAKE} -C ${TOPSRC} generated
+ date >$@
.PATH: ${.CURDIR}/../common
.PATH: ${TOPSRC} ${TOPSRC}/sysdep/openbsd