Make grep a host tool.

This commit is contained in:
sketch 2009-02-25 20:36:44 +00:00
parent 4df84b8304
commit 0d9ab2b40e
5 changed files with 24 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2006/11/01 17:10:36 skrll Exp $
# $NetBSD: Makefile,v 1.6 2009/02/25 20:36:44 sketch Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -8,8 +8,15 @@ DIST= ${IDIST}/src
PROG= grep
SRCS= grep.c dfa.c kwset.c search.c grepmat.c
.ifndef HOSTPROG
DPADD+= ${LIBGREPUTILS} ${LIBINTL}
LDADD+= ${LIBGREPUTILS} -lintl
.else
.PATH: ${IDIST}/lib
SRCS+= closeout.c error.c exclude.c hard-locale.c isdir.c \
obstack.c quotearg.c regex.c savedir.c stpcpy.c \
xmalloc.c xstrtol.c xstrtoumax.c
.endif
INFOFLAGS= -I${IDIST}/doc -I${.CURDIR}/../include
TEXINFO= grep.texi
@ -19,7 +26,7 @@ LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
MLINKS= grep.1 egrep.1 \
grep.1 fgrep.1
.if ${MKNLS} != "no"
.if !defined(HOSTPROG) && ${MKNLS} != "no"
.for F in cs.gmo de.gmo el.gmo eo.gmo es.gmo et.gmo fr.gmo gl.gmo hr.gmo \
id.gmo it.gmo ja.gmo ko.gmo nl.gmo no.gmo pl.gmo pt_BR.gmo ru.gmo \
sl.gmo sv.gmo

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.246 2009/01/22 14:04:15 christos Exp $
# $NetBSD: bsd.README,v 1.247 2009/02/25 20:36:45 sketch Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@ -656,6 +656,8 @@ TOOL_GENCAT Generate NLS message catalogs. [gencat]
TOOL_GMAKE GNU make utility. [gmake]
TOOL_GREP Print lines matching a pattern. [grep]
TOOL_GROFF Front end for groff document formatting system. [groff]
TOOL_HEXDUMP Ascii, decimal, hexadecimal, octal dump. [hexdump]

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.556 2009/02/24 04:04:40 macallan Exp $
# $NetBSD: bsd.own.mk,v 1.557 2009/02/25 20:36:45 sketch Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@ -230,6 +230,7 @@ TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen
TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym
TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat
TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake
TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep
TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff
TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump
TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot
@ -298,6 +299,7 @@ TOOL_FGEN= fgen
TOOL_GENASSYM= genassym
TOOL_GENCAT= gencat
TOOL_GMAKE= gmake
TOOL_GREP= grep
TOOL_GROFF= groff
TOOL_HEXDUMP= hexdump
TOOL_HP300MKBOOT= hp300-mkboot

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.125 2009/02/14 13:56:41 abs Exp $
# $NetBSD: Makefile,v 1.126 2009/02/25 20:36:45 sketch Exp $
.include <bsd.own.mk>
@ -44,7 +44,7 @@ SUBDIR= host-mkdep .WAIT compat .WAIT \
lex .WAIT \
${TOOLCHAIN_BITS} \
asn1_compile atf-compile cat cksum compile_et config db \
file lint1 \
file grep lint1 \
makefs menuc mkcsmapper mkesdb mklocale mknod msgc \
pax .WAIT \
disklabel .WAIT \

7
tools/grep/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 2009/02/25 20:36:45 sketch Exp $
#
HOSTPROGNAME= ${_TOOL_PREFIX}grep
HOST_SRCDIR= gnu/usr.bin/grep/grep
.include "${.CURDIR}/../Makefile.host"