11.9Sthorpej# $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $ 21.1Stv# 31.1Stv# Wrapper for GNU Makefiles. 41.1Stv 51.6Stv.ifndef _WRAPPER_INCLUDED 61.6Stv_WRAPPER_INCLUDED=1 71.7Stv 81.3Stv.ifndef _NOWRAPPER 91.1Stv.include "${.CURDIR}/Makefile" 101.3Stv.endif 111.1Stv 121.1Stv# Prevent targets in source directories from being rebuilt. 131.1Stv 141.1Stv_srcdir:= ${srcdir} 151.4Stv.MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile 161.1Stv 171.1Stv# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree). 181.7Stv.po.gmo .l.c .y.c .y.h .x.1: 191.8Sjmc @true 201.2Stv 211.2Stv# Make sure this file gets re-loaded recursively. 221.3Stv.ifndef _NOWRAPPER 231.9Sthorpej# Some systems have a small ARG_MAX. On such systems, prevent Make 241.9Sthorpej# variables set on the command line from being exported in the 251.9Sthorpej# environment (they will still be set in MAKEOVERRIDES). 261.9SthorpejBUILD_OSTYPE!= uname -s 271.9Sthorpej.if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD" 281.9Sthorpej__noenvexport= -X 291.9Sthorpej.endif 301.2Stv_GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE} 311.9SthorpejMAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER} 321.6Stv.endif 331.3Stv.endif 34