2000-02-20 02:57:12 +03:00
|
|
|
# $NetBSD: bsd.info.mk,v 1.11 2000/02/19 23:57:12 erh Exp $
|
1999-02-11 16:25:42 +03:00
|
|
|
|
|
|
|
.if !target(__initialized__)
|
|
|
|
__initialized__:
|
|
|
|
.if exists(${.CURDIR}/../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.obj.mk>
|
1999-09-14 05:31:11 +04:00
|
|
|
.include <bsd.depall.mk>
|
1999-02-11 16:25:42 +03:00
|
|
|
.MAIN: all
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKEINFO?= makeinfo
|
1999-02-11 18:59:07 +03:00
|
|
|
INFOFLAGS?=
|
1999-02-11 16:25:42 +03:00
|
|
|
INSTALL_INFO?= install-info
|
|
|
|
|
1999-02-11 19:50:46 +03:00
|
|
|
.SUFFIXES: .txi .texi .texinfo .info
|
1999-02-11 16:25:42 +03:00
|
|
|
|
1999-02-11 19:50:46 +03:00
|
|
|
.txi.info .texi.info .texinfo.info:
|
1999-02-11 18:59:07 +03:00
|
|
|
@${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $<
|
1999-02-11 16:25:42 +03:00
|
|
|
|
1999-02-12 18:01:08 +03:00
|
|
|
.if defined(TEXINFO) && !empty(TEXINFO) && ${MKINFO} != "no"
|
1999-02-11 19:50:46 +03:00
|
|
|
INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/}
|
1999-02-11 16:25:42 +03:00
|
|
|
FILES+= ${INFOFILES}
|
2000-02-20 02:57:12 +03:00
|
|
|
.NOPATH: ${INFOFILES}
|
1999-02-11 16:25:42 +03:00
|
|
|
|
|
|
|
infoinstall:
|
|
|
|
.for F in ${INFOFILES}
|
|
|
|
@${INSTALL_INFO} --remove --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${F}
|
|
|
|
${INSTALL_INFO} --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${F}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for F in ${INFOFILES}
|
|
|
|
FILESDIR_${F}= ${INFODIR}
|
|
|
|
FILESOWN_${F}= ${INFOOWN}
|
|
|
|
FILESGRP_${F}= ${INFOGRP}
|
|
|
|
FILESMODE_${F}= ${INFOMODE}
|
|
|
|
FILESNAME_${F}= ${F:T}
|
|
|
|
.endfor
|
|
|
|
|
2000-01-22 22:31:00 +03:00
|
|
|
realall: ${INFOFILES}
|
1999-02-11 16:25:42 +03:00
|
|
|
.else
|
2000-01-22 22:31:00 +03:00
|
|
|
realall:
|
1999-02-11 16:25:42 +03:00
|
|
|
.endif
|
|
|
|
|
1999-04-22 05:06:42 +04:00
|
|
|
.if ${MKINFO} != "no"
|
1999-02-11 16:25:42 +03:00
|
|
|
cleaninfo:
|
|
|
|
rm -f ${INFOFILES}
|
|
|
|
.else
|
|
|
|
cleaninfo infoinstall:
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.files.mk>
|
|
|
|
|
|
|
|
# These need to happen *after* filesinstall.
|
|
|
|
.PHONY: infoinstall cleaninfo
|
|
|
|
realinstall: infoinstall
|
1999-02-11 19:09:21 +03:00
|
|
|
cleandir distclean: cleaninfo
|
1999-02-11 16:25:42 +03:00
|
|
|
|
|
|
|
# Make sure all of the standard targets are defined, even if they do nothing.
|
|
|
|
clean depend includes lint regress tags:
|