Home | History | Annotate | Line # | Download | only in tools
      1  1.9  thorpej #	$NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $
      2  1.1       tv #
      3  1.1       tv # Wrapper for GNU Makefiles.
      4  1.1       tv 
      5  1.6       tv .ifndef _WRAPPER_INCLUDED
      6  1.6       tv _WRAPPER_INCLUDED=1
      7  1.7       tv 
      8  1.3       tv .ifndef _NOWRAPPER
      9  1.1       tv .include "${.CURDIR}/Makefile"
     10  1.3       tv .endif
     11  1.1       tv 
     12  1.1       tv # Prevent targets in source directories from being rebuilt.
     13  1.1       tv 
     14  1.1       tv _srcdir:=	${srcdir}
     15  1.4       tv .MADE:		${.ALLTARGETS:M${_srcdir}/*} Makefile
     16  1.1       tv 
     17  1.1       tv # Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
     18  1.7       tv .po.gmo .l.c .y.c .y.h .x.1:
     19  1.8      jmc 	@true
     20  1.2       tv 
     21  1.2       tv # Make sure this file gets re-loaded recursively.
     22  1.3       tv .ifndef _NOWRAPPER
     23  1.9  thorpej # Some systems have a small ARG_MAX.  On such systems, prevent Make
     24  1.9  thorpej # variables set on the command line from being exported in the
     25  1.9  thorpej # environment (they will still be set in MAKEOVERRIDES).
     26  1.9  thorpej BUILD_OSTYPE!=  uname -s
     27  1.9  thorpej .if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD"
     28  1.9  thorpej __noenvexport=  -X
     29  1.9  thorpej .endif
     30  1.2       tv _GNUWRAPPER:=	${.PARSEDIR}/${.PARSEFILE}
     31  1.9  thorpej MAKE:=		${MAKE} ${__noenvexport} -f ${_GNUWRAPPER}
     32  1.6       tv .endif
     33  1.3       tv .endif
     34