summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/texinfo/Makefile
blob: 64b1d26be888bfc160b5e4bafda6d199528c552d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#	$NetBSD: Makefile,v 1.23 2008/10/25 22:35:36 apb Exp $

.include <bsd.own.mk>

SUBDIR=		makedoc .WAIT common .WAIT info infokey install-info makeinfo \
		texi2dvi texindex

.if ${MKSHARE} != "no"
FILESDIR=	/usr/share/misc
FILES=		epsf.tex texinfo.cat texinfo.dtd texinfo.tex texinfo.xsl
VERSION!=	${TOOL_SED} -n "s/^\#define VERSION \"\(.*\)\"/\1/p" \
			${NETBSDSRCDIR}/gnu/usr.bin/texinfo/common/config.h

texinfo.cat: texinfo-cat.in
	${TOOL_SED} 's/__VERSION__/${VERSION}/g' ${.ALLSRC} >${.TARGET}

realall:	texinfo.cat

CLEANFILES+=	texinfo.cat
.endif

.if ${MKNLS} != "no"
.for F in cs.gmo da.gmo de.gmo de_AT.gmo eo.gmo fr.gmo he.gmo hr.gmo ja.gmo \
	nb.gmo nl.gmo no.gmo pl.gmo ro.gmo ru.gmo sv.gmo tr.gmo zh_CN.gmo zh_TW.gmo
FILES+=		${F}
FILESDIR_${F}=  /usr/share/locale/${F:.gmo=}/LC_MESSAGES
FILESNAME_${F}= texinfo.mo
.endfor
# XXX: Do we want to install the following files too?
#FILES+= 	txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex txi-it.tex \
#		txi-nl.tex txi-no.tex txi-pt.tex txi-tr.tex
.endif

MAN=		info.5 texinfo.5

TEXINFO=	info-stnd.texi info.texi texinfo.txi

DIST=		${NETBSDSRCDIR}/gnu/dist
IDIST=		${DIST}/texinfo
INFOFLAGS=	-I${IDIST}/doc

.PATH: ${IDIST} ${IDIST}/doc ${IDIST}/po ${IDIST}/util

.include <bsd.info.mk>
.include <bsd.prog.mk>
.include <bsd.subdir.mk>