Fix markup. Fix backslashes to surive roff.
[netbsd-mini2440.git] / tools / Makefile.gnuwrap
blob8a625ae2fdd47f090e4cef821f6406e812451349
1 #       $NetBSD: Makefile.gnuwrap,v 1.8 2001/11/22 08:20:07 jmc Exp $
3 # Wrapper for GNU Makefiles.
5 .ifndef _WRAPPER_INCLUDED
6 _WRAPPER_INCLUDED=1
8 .ifndef _NOWRAPPER
9 .include "${.CURDIR}/Makefile"
10 .endif
12 # Prevent targets in source directories from being rebuilt.
14 _srcdir:=       ${srcdir}
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:
19         @true
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