Clean up, add locale files, and add Texinfo doc.
This commit is contained in:
parent
d26f8b9b4b
commit
585a9eb044
@ -1,8 +1,19 @@
|
||||
# $NetBSD: Makefile,v 1.9 1999/02/09 13:18:58 simonb Exp $
|
||||
# $NetBSD: Makefile,v 1.10 1999/02/11 17:26:22 tv Exp $
|
||||
|
||||
SUBDIR+=common
|
||||
SUBDIR+=egrep fgrep grep
|
||||
SUBDIR= common egrep fgrep grep
|
||||
|
||||
all-egrep all-fgrep all-grep: all-common
|
||||
|
||||
.for F in de.gmo el.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo ru.gmo \
|
||||
sl.gmo sv.gmo
|
||||
FILES+= ${F}
|
||||
FILESDIR_${F}= /usr/share/locale/${F:.gmo=}/LC_MESSAGES
|
||||
FILESNAME_${F}= grep.mo
|
||||
.endfor
|
||||
|
||||
TEXINFO= grep.texi
|
||||
INFOFLAGS= -I${.CURDIR}/../../dist/grep/doc
|
||||
.PATH: ${.CURDIR}/../../dist/grep/doc ${.CURDIR}/../../dist/grep/po
|
||||
|
||||
.include <bsd.info.mk>
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,16 +1,16 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 1999/02/09 13:18:58 simonb Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 1999/02/11 17:26:22 tv Exp $
|
||||
|
||||
DIST= ${.CURDIR}/../../../dist/grep
|
||||
.PATH: ${DIST}/src
|
||||
.PATH: ${DIST}/doc
|
||||
DIST= ${.CURDIR}/../../../dist
|
||||
.PATH: ${DIST}/grep/src ${DIST}/grep/doc
|
||||
|
||||
#COBJDIR!= cd ${.CURDIR}/../common ; make print-objdir
|
||||
COBJDIR!=cd $(.CURDIR)/../common; \
|
||||
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
|
||||
.if !make(print-objdir)
|
||||
LIBCOMMONDIR!= cd ${.CURDIR}/../common && ${MAKE} -s print-objdir
|
||||
.endif
|
||||
|
||||
CPPFLAGS+=-I${.CURDIR}/../common
|
||||
DPADD+= ${COBJDIR}/libgrep.a
|
||||
LDADD+= -L${COBJDIR} -lgrep
|
||||
CPPFLAGS+= -I${.CURDIR}/../common -I${DIST}/grep/intl -DHAVE_CONFIG_H \
|
||||
-DLOCALEDIR=\"/usr/share/locale\"
|
||||
DPADD+= ${LIBCOMMONDIR}/libcommon.a
|
||||
LDADD+= -L${LIBCOMMONDIR} -lcommon
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
|
@ -1,15 +1,19 @@
|
||||
# $NetBSD: Makefile,v 1.1 1999/02/09 13:19:14 simonb Exp $
|
||||
# $NetBSD: Makefile,v 1.2 1999/02/11 17:26:23 tv Exp $
|
||||
|
||||
LIB= grep
|
||||
SRCS= grep.c dfa.c kwset.c obstack.c savedir.c getopt.c getopt1.c search.c
|
||||
SRCS+= stpcpy.c regex.c
|
||||
CPPFLAGS+=-DHAVE_CONFIG_H
|
||||
LIB= common
|
||||
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
|
||||
CPPFLAGS+= -DGNULOCALEDIR=\"/usr/share/locale\" \
|
||||
-DLOCALE_ALIAS_PATH=\"/usr/share/locale:.\"
|
||||
|
||||
NOLINT= yes
|
||||
NOPIC= yes
|
||||
NOPROFILE=yes
|
||||
|
||||
# only needed during build - prevent installation of library
|
||||
libinstall::
|
||||
NOLINT=
|
||||
NOPIC=
|
||||
NOPROFILE=
|
||||
NOLINKLIB=
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.PATH: ${DIST}/grep/intl
|
||||
|
@ -61,7 +61,7 @@
|
||||
|
||||
/* #undef HAVE_STPCPY */
|
||||
|
||||
/* #undef ENABLE_NLS */
|
||||
#define ENABLE_NLS 1
|
||||
|
||||
/* #undef HAVE_CATGETS */
|
||||
|
||||
|
3
gnu/usr.bin/grep/common/libintl.h
Normal file
3
gnu/usr.bin/grep/common/libintl.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* $NetBSD: libintl.h,v 1.1 1999/02/11 17:26:23 tv Exp $ */
|
||||
|
||||
#include <libgettext.h>
|
Loading…
Reference in New Issue
Block a user