2001-08-14 11:02:13 +04:00
|
|
|
# $NetBSD: bsd.info.mk,v 1.22 2001/08/14 07:02:13 tv 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
|
|
|
|
|
2000-06-08 07:30:58 +04:00
|
|
|
.PHONY: infoinstall cleaninfo
|
2001-08-14 11:02:13 +04:00
|
|
|
cleandir: cleaninfo
|
2000-06-08 07:30:58 +04:00
|
|
|
|
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:
|
2001-08-02 09:42:56 +04:00
|
|
|
${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $<
|
1999-02-11 16:25:42 +03:00
|
|
|
|
2000-06-08 07:30:58 +04:00
|
|
|
.if defined(TEXINFO) && !empty(TEXINFO)
|
1999-02-11 19:50:46 +03:00
|
|
|
INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/}
|
2000-02-20 02:57:12 +03:00
|
|
|
.NOPATH: ${INFOFILES}
|
1999-02-11 16:25:42 +03:00
|
|
|
|
2000-06-08 07:30:58 +04:00
|
|
|
.if ${MKINFO} != "no"
|
2000-06-08 07:51:56 +04:00
|
|
|
realinstall: infoinstall
|
2000-01-22 22:31:00 +03:00
|
|
|
realall: ${INFOFILES}
|
1999-02-11 16:25:42 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
cleaninfo:
|
|
|
|
rm -f ${INFOFILES}
|
2000-06-08 07:30:58 +04:00
|
|
|
|
|
|
|
infoinstall:: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
|
|
|
|
.PRECIOUS: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
|
|
|
|
.if !defined(UPDATE)
|
|
|
|
.PHONY: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
|
1999-02-11 16:25:42 +03:00
|
|
|
.endif
|
|
|
|
|
2000-06-08 07:30:58 +04:00
|
|
|
__infoinstall: .USE
|
|
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} \
|
2000-06-10 18:12:03 +04:00
|
|
|
-o ${INFOOWN_${.ALLSRC:T}:U${INFOOWN}} \
|
|
|
|
-g ${INFOGRP_${.ALLSRC:T}:U${INFOGRP}} \
|
|
|
|
-m ${INFOMODE_${.ALLSRC:T}:U${INFOMODE}} \
|
2000-06-08 07:30:58 +04:00
|
|
|
${.ALLSRC} ${.TARGET}
|
2000-06-10 18:12:03 +04:00
|
|
|
@${INSTALL_INFO} --remove --info-dir=${DESTDIR}${INFODIR} ${.TARGET}
|
|
|
|
${INSTALL_INFO} --info-dir=${DESTDIR}${INFODIR} ${.TARGET}
|
1999-02-11 16:25:42 +03:00
|
|
|
|
2001-05-08 07:19:51 +04:00
|
|
|
.for F in ${INFOFILES:O:u}
|
2000-06-08 07:30:58 +04:00
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: .MADE
|
|
|
|
.endif
|
|
|
|
${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: ${F} __infoinstall
|
|
|
|
.endfor
|
|
|
|
.else
|
|
|
|
cleaninfo:
|
|
|
|
.endif
|
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:
|