# $NetBSD: bsd.info.mk,v 1.3 1999/02/11 15:59:07 tv Exp $ .if !target(__initialized__) __initialized__: .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" .endif .include .include .MAIN: all .endif MAKEINFO?= makeinfo INFOFLAGS?= INSTALL_INFO?= install-info .SUFFIXES: .txi .texi .info .txi.info .texi.info: @${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $< .if defined(TEXINFO) && !empty(TEXINFO) && !defined(NOSHARE) INFOFILES= ${TEXINFO:C/\.te?xi$/.info/} 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 .if !defined(NOSHARE) all: ${INFOFILES} .else all: .endif cleaninfo: rm -f ${INFOFILES} .else cleaninfo infoinstall: .endif .include # These need to happen *after* filesinstall. .PHONY: infoinstall cleaninfo realinstall: infoinstall realclean: cleaninfo # Make sure all of the standard targets are defined, even if they do nothing. clean depend includes lint regress tags: