-# $OpenBSD: Makefile.inc,v 1.1 2017/07/03 18:19:55 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2017/07/04 21:56:05 bluhm Exp $
TOPSRC= ${.CURDIR}/../../../../lib/libedit
TOPOBJ!!= ${MAKE} -C ${TOPSRC} -V .OBJDIR
-CLAGS+= -I${TOPSRC} -I${TOPOBJ}
+CFLAGS+= -I${TOPSRC} -I${TOPOBJ}
.PHONY: generated
-# $OpenBSD: Makefile,v 1.6 2017/07/03 18:19:55 bluhm Exp $
+# $OpenBSD: Makefile,v 1.7 2017/07/04 21:56:05 bluhm Exp $
#
# Author: Ingo Schwarze <schwarze@openbsd.org>, 2016. Public Domain.
CLEANFILES += test_read_char test_getcmd out_getcmd.txt
-test_read_char test_getcmd: generated
-
-read_char: test_read_char
+read_char: generated test_read_char
sh ${.CURDIR}/test_read_char.sh
-getcmd: test_getcmd
+getcmd: generated test_getcmd
echo -n s | ./test_getcmd > out_getcmd.txt
diff -u ${.CURDIR}/exp_getcmd.txt out_getcmd.txt