[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.1, Fri Apr 12 01:59:45 2002 UTC (17 years, 6 months ago) by lukem
Branch: MAIN

move default PARSELISTENV and related goop into separate Makefile.parselist,
and add DISTRIBDIR to PARSELISTENV.

#	$NetBSD: Makefile.parselist,v 1.1 2002/04/12 01:59:45 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(_PARSELIST_MK_)
_PARSELIST_MK_=1


PARSELISTENV+=	_SRC_TOP_=${_SRC_TOP_: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	# _PARSELIST_MK_