11.6Sapb# $NetBSD: Makefile.parselist,v 1.6 2008/10/19 22:05:20 apb Exp $ 21.1Slukem# 31.1Slukem# Makefile snippet to setup parselist.awk related variables: 41.1Slukem# PARSELISTENV environment variables to pass to parselist.awk 51.1Slukem# (may be appended to by caller) 61.1Slukem# PARSELISTDEP dependency on parselist.awk 71.1Slukem# PARSELIST run ${PARSELISTENV} awk -f ${PARSELISTDEP} 81.1Slukem# 91.1Slukem 101.3Slukem.if !defined(_MAKEFILE_PARSELIST_) 111.3Slukem_MAKEFILE_PARSELIST_=1 121.1Slukem 131.1Slukem 141.2SlukemPARSELISTENV+= NETBSDSRCDIR=${NETBSDSRCDIR:Q} \ 151.1Slukem CRUNCHBIN=${CRUNCHBIN:Q} \ 161.1Slukem CURDIR=${.CURDIR:Q} \ 171.1Slukem DESTDIR=${DESTDIR:Q} \ 181.1Slukem DISTRIBDIR=${DISTRIBDIR:Q} \ 191.1Slukem MACHINE=${MACHINE:Q} \ 201.1Slukem MACHINE_ARCH=${MACHINE_ARCH:Q} \ 211.4Slukem MAKE=${MAKE:Q} \ 221.1Slukem OBJDIR=${.OBJDIR:Q} 231.1Slukem 241.1SlukemPARSELISTDEP= ${DISTRIBDIR}/common/parselist.awk 251.6SapbPARSELIST= ${PARSELISTENV} ${TOOL_AWK} -f ${PARSELISTDEP} 261.1Slukem 271.3Slukem 281.3Slukem.endif # _MAKEFILE_PARSELIST_ 29