1999-02-12 04:10:06 +03:00
|
|
|
# $NetBSD: bsd.info.mk,v 1.6 1999/02/12 01:10:06 lukem 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>
|
|
|
|
.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 04:10:06 +03:00
|
|
|
.if defined(TEXINFO) && !empty(TEXINFO) && ${MKSHARE} != "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}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
1999-02-12 04:10:06 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
1999-02-11 16:25:42 +03:00
|
|
|
all: ${INFOFILES}
|
|
|
|
.else
|
|
|
|
all:
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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:
|