1 1.1 christos # $NetBSD: Makefile,v 1.1 2016/01/10 22:16:40 christos Exp $ 2 1.1 christos 3 1.1 christos .include "${.CURDIR}/../Makefile.inc" 4 1.1 christos 5 1.1 christos DIST= ${IDIST}/src 6 1.1 christos .PATH: ${DIST} ${IDIST}/doc ${IDIST}/man ${.CURDIR}/../po 7 1.1 christos 8 1.1 christos PROG= grep 9 1.1 christos SRCS= grep.c dfa.c kwset.c search.c grepmat.c 10 1.1 christos 11 1.1 christos CWARNFLAGS.clang+= -Wno-format-security -Wno-tautological-compare 12 1.1 christos 13 1.1 christos .ifndef HOSTPROG 14 1.1 christos DPADD+= ${LIBGREPUTILS} ${LIBINTL} 15 1.1 christos LDADD+= ${LIBGREPUTILS} -lintl 16 1.1 christos .else 17 1.1 christos .PATH: ${IDIST}/lib 18 1.1 christos SRCS+= closeout.c error.c exclude.c hard-locale.c isdir.c \ 19 1.1 christos obstack.c quotearg.c regex.c savedir.c stpcpy.c \ 20 1.1 christos xmalloc.c xstrtol.c xstrtoumax.c 21 1.1 christos .endif 22 1.1 christos 23 1.1 christos INFOFLAGS= -I${IDIST}/doc -I${.CURDIR}/../include 24 1.1 christos TEXINFO= grep.texi 25 1.1 christos 26 1.1 christos LINKS= ${BINDIR}/grep ${BINDIR}/egrep \ 27 1.1 christos ${BINDIR}/grep ${BINDIR}/fgrep 28 1.1 christos MLINKS= grep.1 egrep.1 \ 29 1.1 christos grep.1 fgrep.1 30 1.1 christos 31 1.1 christos .if !defined(HOSTPROG) && ${MKNLS} != "no" 32 1.1 christos .for F in cs.gmo de.gmo el.gmo eo.gmo es.gmo et.gmo fr.gmo gl.gmo hr.gmo \ 33 1.1 christos id.gmo it.gmo ja.gmo ko.gmo nl.gmo no.gmo pl.gmo pt_BR.gmo ru.gmo \ 34 1.1 christos sl.gmo sv.gmo 35 1.1 christos FILES+= ${F} 36 1.1 christos FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES 37 1.1 christos FILESNAME_${F}= grep.mo 38 1.1 christos .endfor 39 1.1 christos .endif 40 1.1 christos 41 1.1 christos .include <bsd.info.mk> 42 1.1 christos .include <bsd.prog.mk> 43