diff options
| author | itojun <itojun@NetBSD.org> | 2000-10-28 06:18:07 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-10-28 06:18:07 +0000 |
| commit | 14a62d18784d3793439bcaadfa53cd7d53368518 (patch) | |
| tree | a589f90692488fe4bb26602377c57468bed36f4f /gnu/usr.bin | |
| parent | 5bbd7d495ea5d8f34a864ad969de8dd09e72305f (diff) | |
improve MKNLS=no/yes. build no NLS-related source code on MKNOS=no.
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/grep/Makefile | 20 | ||||
| -rw-r--r-- | gnu/usr.bin/grep/config.h | 2 |
2 files changed, 13 insertions, 9 deletions
diff --git a/gnu/usr.bin/grep/Makefile b/gnu/usr.bin/grep/Makefile index 456aedbd3d5..6c1459e6788 100644 --- a/gnu/usr.bin/grep/Makefile +++ b/gnu/usr.bin/grep/Makefile @@ -1,31 +1,35 @@ -# $NetBSD: Makefile,v 1.16 2000/02/28 10:00:57 enami Exp $ +# $NetBSD: Makefile,v 1.17 2000/10/28 06:18:07 itojun Exp $ .include <bsd.own.mk> PROG= grep -SRCS= bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c \ - loadmsgcat.c localealias.c textdomain.c l10nflist.c \ - explodename.c intl-compat.c SRCS+= grep.c dfa.c kwset.c obstack.c savedir.c getopt.c getopt1.c \ search.c stpcpy.c regex.c grepmat.c MAN= grep.1 DIST= ${.CURDIR}/../../dist -CPPFLAGS+= -I${DIST}/grep/src -I${DIST}/grep/intl -I${.CURDIR} \ - -DHAVE_CONFIG_H \ +CPPFLAGS+= -DHAVE_CONFIG_H +CLEANFILES+= ${PROG}.1 ${PROG}.info ${PROG}.cat1 + +.if ${MKNLS} != "no" +SRCS+= bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c \ + loadmsgcat.c localealias.c textdomain.c l10nflist.c \ + explodename.c intl-compat.c +CPPFLAGS+= -I${DIST}/grep/src -I${DIST}/grep/intl -I${.CURDIR} +CPPFLAGS+= -DENABLE_NLS -DHAVE_LIBINTL_H=1 \ -DGNULOCALEDIR=\"/usr/share/locale\" \ -DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\" \ -DLOCALEDIR=\"/usr/share/locale\" -CLEANFILES+= ${PROG}.1 ${PROG}.info ${PROG}.cat1 -.if ${MKNLS} != "no" .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 FILES+= ${F} FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES FILESNAME_${F}= grep.mo .endfor +.else +CPPFLAGS+= -I${DIST}/grep/src -I${.CURDIR} .endif TEXINFO= grep.texi diff --git a/gnu/usr.bin/grep/config.h b/gnu/usr.bin/grep/config.h index 57883709f89..7e6bde9f03f 100644 --- a/gnu/usr.bin/grep/config.h +++ b/gnu/usr.bin/grep/config.h @@ -64,7 +64,7 @@ /* #undef HAVE_STPCPY */ -#define ENABLE_NLS 1 +/* #undef ENABLE_NLS */ /* #undef HAVE_CATGETS */ |
