1 # $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $ 2 # 3 # Wrapper for GNU Makefiles. 4 5 .ifndef _WRAPPER_INCLUDED 6 _WRAPPER_INCLUDED=1 7 8 .ifndef _NOWRAPPER 9 .include "${.CURDIR}/Makefile" 10 .endif 11 12 # Prevent targets in source directories from being rebuilt. 13 14 _srcdir:= ${srcdir} 15 .MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile 16 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: 19 @true 20 21 # Make sure this file gets re-loaded recursively. 22 .ifndef _NOWRAPPER 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" 28 __noenvexport= -X 29 .endif 30 _GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE} 31 MAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER} 32 .endif 33 .endif 34