summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorsketch <sketch@NetBSD.org>2009-02-25 20:36:44 +0000
committersketch <sketch@NetBSD.org>2009-02-25 20:36:44 +0000
commit0d9ab2b40eafdd033d0c720bc373cbc79e301d63 (patch)
treecfc03cc1bfa2b0e268beee3808a6e7dfdc4f7702 /gnu/usr.bin
parent4df84b8304e5862e661a339286825781089fe807 (diff)
Make grep a host tool.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/grep/grep/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/usr.bin/grep/grep/Makefile b/gnu/usr.bin/grep/grep/Makefile
index 41dd3f19936..9032bf67bd4 100644
--- a/gnu/usr.bin/grep/grep/Makefile
+++ b/gnu/usr.bin/grep/grep/Makefile
@@ -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