2001-08-03 18:42:35 +04:00
|
|
|
# $NetBSD: Makefile,v 1.21 2001/08/03 14:42:35 enami 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
|
|
|
|
|
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\"
|
2000-11-06 18:29:18 +03:00
|
|
|
# libintl-less build should use this instead of the above lines
|
|
|
|
#CPPFLAGS+= -I${DIST}/grep/src -I${.CURDIR}
|
1993-10-07 10:23:44 +03:00
|
|
|
|
2000-11-06 18:29:18 +03:00
|
|
|
.if ${MKNLS} != "no"
|
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
|
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
|
|
|
|
|
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
|