bsd.info.mk revision 1.12 1 # $NetBSD: bsd.info.mk,v 1.12 2000/06/06 05:40:47 mycroft Exp $
2
3 .if !target(__initialized__)
4 __initialized__:
5 .if exists(${.CURDIR}/../Makefile.inc)
6 .include "${.CURDIR}/../Makefile.inc"
7 .endif
8 .include <bsd.own.mk>
9 .include <bsd.obj.mk>
10 .include <bsd.depall.mk>
11 .MAIN: all
12 .endif
13
14 MAKEINFO?= makeinfo
15 INFOFLAGS?=
16 INSTALL_INFO?= install-info
17
18 .SUFFIXES: .txi .texi .texinfo .info
19
20 .txi.info .texi.info .texinfo.info:
21 @${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $<
22
23 .if defined(TEXINFO) && !empty(TEXINFO) && ${MKINFO} != "no"
24 INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/}
25 FILES+= ${INFOFILES}
26 .NOPATH: ${INFOFILES}
27
28 infoinstall:
29 .for F in ${INFOFILES}
30 @${INSTALL_INFO} --remove --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${F}
31 ${INSTALL_INFO} --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${F}
32 .endfor
33
34 realall: ${INFOFILES}
35 .else
36 realall:
37 .endif
38
39 .if ${MKINFO} != "no"
40 cleaninfo:
41 rm -f ${INFOFILES}
42 .else
43 cleaninfo infoinstall:
44 .endif
45
46 .include <bsd.files.mk>
47
48 # These need to happen *after* filesinstall.
49 .PHONY: infoinstall cleaninfo
50 realinstall: infoinstall
51 cleandir distclean: cleaninfo
52
53 # Make sure all of the standard targets are defined, even if they do nothing.
54 clean depend includes lint regress tags:
55