From b1de09dcc93751ff736b2cf93620353f306ef455 Mon Sep 17 00:00:00 2001 From: uwe Date: Fri, 7 Feb 2020 22:05:16 +0000 Subject: [PATCH] Fake terminfo should not depend on TOOL_TIC for native build. Makes it possible to build this standalone with USETOOLS=never. --- tests/lib/libcurses/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/lib/libcurses/Makefile b/tests/lib/libcurses/Makefile index 8d0437f18bf8..17424750c1d0 100644 --- a/tests/lib/libcurses/Makefile +++ b/tests/lib/libcurses/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2012/06/03 23:19:11 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2020/02/07 22:05:16 uwe Exp $ NOMAN= # defined @@ -23,7 +23,11 @@ CLEANFILES+= ${TERMINFO_DB}.cdb realall: ${TERMINFO_DB}.cdb -${TERMINFO_DB}.cdb: ${TOOL_TIC} ${TEST_TERMINFO} +.if ${USETOOLS} == "yes" +DPTOOL_TIC = ${TOOL_TIC} +.endif + +${TERMINFO_DB}.cdb: ${DPTOOL_TIC} ${TEST_TERMINFO} ${TOOL_TIC} -o ${.TARGET} ${.CURDIR}/${TEST_TERMINFO} .include