[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.7, Thu Jan 24 14:17:40 2013 UTC (22 months, 3 weeks ago) by roy
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.6: +2 -1 lines

Fix building our terminals with a non standard NETBSDSRCDIR, PR lib/46793.
Thanks to Bernd Ernesti.

#	$NetBSD: Makefile.hash,v 1.7 2013/01/24 14:17:40 roy Exp $

SCRIPT_ENV=	\
	NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
	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