[BACK]Return to Makefile.parselist CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / distrib / common

File: [cvs.NetBSD.org] / src / distrib / common / Makefile.parselist (download)

Revision 1.3, Tue Mar 11 07:18:38 2003 UTC (16 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.2: +5 -4 lines

add multiple-include protection.
clean up some comments.

#	$NetBSD: Makefile.parselist,v 1.3 2003/03/11 07:18:38 lukem Exp $
#
# Makefile snippet to setup parselist.awk related variables:
#	PARSELISTENV	environment variables to pass to parselist.awk
#			(may be appended to by caller)
#	PARSELISTDEP	dependency on parselist.awk
#	PARSELIST	run  ${PARSELISTENV} awk -f ${PARSELISTDEP}
#

.if !defined(_MAKEFILE_PARSELIST_)
_MAKEFILE_PARSELIST_=1


PARSELISTENV+=	NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
		CRUNCHBIN=${CRUNCHBIN:Q} \
		CURDIR=${.CURDIR:Q} \
		DESTDIR=${DESTDIR:Q} \
		DISTRIBDIR=${DISTRIBDIR:Q} \
		MACHINE=${MACHINE:Q} \
		MACHINE_ARCH=${MACHINE_ARCH:Q} \
		OBJDIR=${.OBJDIR:Q}

PARSELISTDEP=	${DISTRIBDIR}/common/parselist.awk
PARSELIST=	${PARSELISTENV} awk -f ${PARSELISTDEP}


.endif	# _MAKEFILE_PARSELIST_