2001-11-22 11:20:07 +03:00
|
|
|
# $NetBSD: Makefile.gnuwrap,v 1.8 2001/11/22 08:20:07 jmc Exp $
|
2001-11-13 02:16:17 +03:00
|
|
|
#
|
|
|
|
# Wrapper for GNU Makefiles.
|
|
|
|
|
2001-11-13 09:03:41 +03:00
|
|
|
.ifndef _WRAPPER_INCLUDED
|
|
|
|
_WRAPPER_INCLUDED=1
|
2001-11-14 23:05:23 +03:00
|
|
|
|
2001-11-13 07:28:27 +03:00
|
|
|
.ifndef _NOWRAPPER
|
2001-11-13 02:16:17 +03:00
|
|
|
.include "${.CURDIR}/Makefile"
|
2001-11-13 07:28:27 +03:00
|
|
|
.endif
|
2001-11-13 02:16:17 +03:00
|
|
|
|
|
|
|
# Prevent targets in source directories from being rebuilt.
|
|
|
|
|
|
|
|
_srcdir:= ${srcdir}
|
2001-11-13 07:37:00 +03:00
|
|
|
.MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree).
|
2001-11-14 23:05:23 +03:00
|
|
|
.po.gmo .l.c .y.c .y.h .x.1:
|
2001-11-22 11:20:07 +03:00
|
|
|
@true
|
2001-11-13 07:01:49 +03:00
|
|
|
|
|
|
|
# Make sure this file gets re-loaded recursively.
|
2001-11-13 07:28:27 +03:00
|
|
|
.ifndef _NOWRAPPER
|
2001-11-13 07:01:49 +03:00
|
|
|
_GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE}
|
|
|
|
MAKE:= ${MAKE} -f ${_GNUWRAPPER}
|
2001-11-13 07:28:27 +03:00
|
|
|
.endif
|
2001-11-13 09:03:41 +03:00
|
|
|
.endif
|