[BACK]Return to Makefile.hash CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libterminfo

File: [cvs.NetBSD.org] / src / lib / libterminfo / Makefile.hash (download)

Revision 1.6, Mon Aug 20 15:44:02 2012 UTC (2 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.5: +3 -1 lines

Add tic dependency only for the USETOOLS case.

#	$NetBSD: Makefile.hash,v 1.6 2012/08/20 15:44:02 joerg Exp $

SCRIPT_ENV=	\
	TOOL_AWK=${TOOL_AWK:Q} \
	TOOL_NBPERF=${TOOL_NBPERF:Q} \
	TOOL_SED=${TOOL_SED:Q} \
	TOOL_SORT=${TOOL_SORT:Q} \
	TOOL_TIC=${TOOL_TIC:Q}

PARSEDIR:=${.PARSEDIR}
# Generate our string and hash tables
hash.c: genhash term.h
		@echo "Generating terminfo hash"
		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}

termcap_hash.c: genthash termcap_map.c
		@echo "Generating termcap hash"
		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}

# Allow terminfo descriptions to be compiled into libterminfo
compiled_terms.c: genterms term.h ${NETBSDSRCDIR}/share/terminfo/terminfo
		@echo "Generating compiled terminfo descriptions"
		${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} > ${.TARGET}

.if ${USETOOLS} == "yes"
compiled_terms.c: ${TOOL_TIC}
.endif

DPSRCS+=	hash.c termcap_hash.c compiled_terms.c

CLEANFILES+=	hash.c termcap_hash.c compiled_terms.c