1 # $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $
3 # Wrapper for GNU Makefiles.
5 .ifndef _WRAPPER_INCLUDED
9 .include "${.CURDIR}/Makefile"
12 # Prevent targets in source directories from being rebuilt.
15 .MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile
17 # Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
18 .po.gmo .l.c .y.c .y.h .x.1:
21 # Make sure this file gets re-loaded recursively.
23 # Some systems have a small ARG_MAX. On such systems, prevent Make
24 # variables set on the command line from being exported in the
25 # environment (they will still be set in MAKEOVERRIDES).
26 BUILD_OSTYPE!= uname -s
27 .if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD"
30 _GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE}
31 MAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER}