2000-10-31 13:50:46 +03:00
|
|
|
# $NetBSD: Makefile,v 1.18 2000/10/31 10:50:46 itojun Exp $
|
1999-05-31 18:21:11 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1993-08-02 21:38:43 +04:00
|
|
|
|
1999-04-06 20:54:55 +04:00
|
|
|
PROG= grep
|
|
|
|
SRCS+= grep.c dfa.c kwset.c obstack.c savedir.c getopt.c getopt1.c \
|
2000-02-27 04:31:02 +03:00
|
|
|
search.c stpcpy.c regex.c grepmat.c
|
1999-04-06 20:54:55 +04:00
|
|
|
MAN= grep.1
|
1993-07-07 21:25:52 +04:00
|
|
|
|
1999-04-06 20:54:55 +04:00
|
|
|
DIST= ${.CURDIR}/../../dist
|
|
|
|
|
2000-10-28 10:18:07 +04:00
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H
|
|
|
|
CLEANFILES+= ${PROG}.1 ${PROG}.info ${PROG}.cat1
|
|
|
|
|
|
|
|
.if ${MKNLS} != "no"
|
2000-10-31 13:50:46 +03:00
|
|
|
LDADD+= -lintl
|
|
|
|
DPADD+= ${LIBINTL}
|
|
|
|
CPPFLAGS+= -I${DIST}/grep/src -I${.CURDIR}
|
2000-10-28 10:18:07 +04:00
|
|
|
CPPFLAGS+= -DENABLE_NLS -DHAVE_LIBINTL_H=1 \
|
1999-04-06 20:54:55 +04:00
|
|
|
-DGNULOCALEDIR=\"/usr/share/locale\" \
|
|
|
|
-DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\" \
|
|
|
|
-DLOCALEDIR=\"/usr/share/locale\"
|
1993-10-07 10:23:44 +03:00
|
|
|
|
2000-02-27 04:31:02 +03:00
|
|
|
.for F in de.gmo el.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo pt_BR.gmo \
|
|
|
|
ru.gmo sl.gmo sv.gmo
|
1999-02-11 20:26:22 +03:00
|
|
|
FILES+= ${F}
|
|
|
|
FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES
|
|
|
|
FILESNAME_${F}= grep.mo
|
|
|
|
.endfor
|
2000-10-28 10:18:07 +04:00
|
|
|
.else
|
|
|
|
CPPFLAGS+= -I${DIST}/grep/src -I${.CURDIR}
|
1999-05-31 18:21:11 +04:00
|
|
|
.endif
|
1999-02-11 20:26:22 +03:00
|
|
|
|
|
|
|
TEXINFO= grep.texi
|
|
|
|
INFOFLAGS= -I${.CURDIR}/../../dist/grep/doc
|
|
|
|
|
2000-02-27 05:36:55 +03:00
|
|
|
# this is a hack -- our texinfo doesn't support @command yet, so
|
|
|
|
# we have to use the pre-generated grep.info until it does
|
|
|
|
grep.info:
|
2000-02-28 13:00:57 +03:00
|
|
|
ln -fs ${DIST}/grep/doc/grep.info .
|
1999-04-06 20:54:55 +04:00
|
|
|
|
|
|
|
MLINKS= grep.1 egrep.1 \
|
|
|
|
grep.1 fgrep.1
|
|
|
|
LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
|
|
|
|
${BINDIR}/grep ${BINDIR}/fgrep
|
|
|
|
|
1999-04-24 21:40:33 +04:00
|
|
|
.include <bsd.info.mk>
|
1999-04-06 20:54:55 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
.PATH: ${DIST}/grep/doc ${DIST}/grep/intl ${DIST}/grep/po ${DIST}/grep/src
|