summaryrefslogtreecommitdiff
path: root/tools/Makefile.gnuwrap
blob: 72840b42af450d6d8728ccf790628d5767576a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#	$NetBSD: Makefile.gnuwrap,v 1.7 2001/11/14 20:05:23 tv Exp $
#
# Wrapper for GNU Makefiles.

.ifndef _WRAPPER_INCLUDED
_WRAPPER_INCLUDED=1

.ifndef _NOWRAPPER
.include "${.CURDIR}/Makefile"
.endif

# Prevent targets in source directories from being rebuilt.

_srcdir:=	${srcdir}
.MADE:		${.ALLTARGETS:M${_srcdir}/*} Makefile

# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
.po.gmo .l.c .y.c .y.h .x.1:

# Make sure this file gets re-loaded recursively.
.ifndef _NOWRAPPER
_GNUWRAPPER:=	${.PARSEDIR}/${.PARSEFILE}
MAKE:=		${MAKE} -f ${_GNUWRAPPER}
.endif
.endif