NetBSD/share/mk/bsd.info.mk
perry 9ad44ce879 Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".
1999-09-14 01:31:11 +00:00

62 lines
1.3 KiB
Makefile

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