2003-03-14 05:22:50 +00:00
|
|
|
# $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $
|
2001-11-12 23:16:17 +00:00
|
|
|
#
|
|
|
|
# Wrapper for GNU Makefiles.
|
|
|
|
|
2001-11-13 06:03:41 +00:00
|
|
|
.ifndef _WRAPPER_INCLUDED
|
|
|
|
_WRAPPER_INCLUDED=1
|
2001-11-14 20:05:23 +00:00
|
|
|
|
2001-11-13 04:28:27 +00:00
|
|
|
.ifndef _NOWRAPPER
|
2001-11-12 23:16:17 +00:00
|
|
|
.include "${.CURDIR}/Makefile"
|
2001-11-13 04:28:27 +00:00
|
|
|
.endif
|
2001-11-12 23:16:17 +00:00
|
|
|
|
|
|
|
# Prevent targets in source directories from being rebuilt.
|
|
|
|
|
|
|
|
_srcdir:= ${srcdir}
|
2001-11-13 04:37:00 +00:00
|
|
|
.MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile
|
|
|
|
|
2001-11-12 23:16:17 +00:00
|
|
|
# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
|
2001-11-14 20:05:23 +00:00
|
|
|
.po.gmo .l.c .y.c .y.h .x.1:
|
2001-11-22 08:20:07 +00:00
|
|
|
@true
|
2001-11-13 04:01:49 +00:00
|
|
|
|
|
|
|
# Make sure this file gets re-loaded recursively.
|
2001-11-13 04:28:27 +00:00
|
|
|
.ifndef _NOWRAPPER
|
2003-03-14 05:22:50 +00:00
|
|
|
# Some systems have a small ARG_MAX. On such systems, prevent Make
|
|
|
|
# variables set on the command line from being exported in the
|
|
|
|
# environment (they will still be set in MAKEOVERRIDES).
|
|
|
|
BUILD_OSTYPE!= uname -s
|
|
|
|
.if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD"
|
|
|
|
__noenvexport= -X
|
|
|
|
.endif
|
2001-11-13 04:01:49 +00:00
|
|
|
_GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE}
|
2003-03-14 05:22:50 +00:00
|
|
|
MAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER}
|
2001-11-13 04:28:27 +00:00
|
|
|
.endif
|
2001-11-13 06:03:41 +00:00
|
|
|
.endif
|