1 1.15 mycroft # $NetBSD: bsd.info.mk,v 1.15 2000/06/08 03:30:58 mycroft Exp $ 2 1.1 tv 3 1.1 tv .if !target(__initialized__) 4 1.1 tv __initialized__: 5 1.1 tv .if exists(${.CURDIR}/../Makefile.inc) 6 1.1 tv .include "${.CURDIR}/../Makefile.inc" 7 1.1 tv .endif 8 1.1 tv .include <bsd.own.mk> 9 1.1 tv .include <bsd.obj.mk> 10 1.9 perry .include <bsd.depall.mk> 11 1.1 tv .MAIN: all 12 1.1 tv .endif 13 1.1 tv 14 1.1 tv MAKEINFO?= makeinfo 15 1.3 tv INFOFLAGS?= 16 1.1 tv INSTALL_INFO?= install-info 17 1.1 tv 18 1.15 mycroft .PHONY: infoinstall cleaninfo 19 1.15 mycroft .if ${MKINFO} != "no" 20 1.15 mycroft realinstall: infoinstall 21 1.15 mycroft .endif 22 1.15 mycroft cleandir distclean: cleaninfo 23 1.15 mycroft 24 1.5 tv .SUFFIXES: .txi .texi .texinfo .info 25 1.1 tv 26 1.5 tv .txi.info .texi.info .texinfo.info: 27 1.3 tv @${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $< 28 1.1 tv 29 1.15 mycroft .if defined(TEXINFO) && !empty(TEXINFO) 30 1.5 tv INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/} 31 1.11 erh .NOPATH: ${INFOFILES} 32 1.1 tv 33 1.15 mycroft .if ${MKINFO} != "no" 34 1.10 mycroft realall: ${INFOFILES} 35 1.1 tv .endif 36 1.1 tv 37 1.1 tv cleaninfo: 38 1.1 tv rm -f ${INFOFILES} 39 1.15 mycroft 40 1.15 mycroft infoinstall:: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@} 41 1.15 mycroft .PRECIOUS: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@} 42 1.15 mycroft .if !defined(UPDATE) 43 1.15 mycroft .PHONY: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@} 44 1.1 tv .endif 45 1.1 tv 46 1.15 mycroft __infoinstall: .USE 47 1.15 mycroft @${INSTALL_INFO} --remove --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${.ALLSRC} 48 1.15 mycroft ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} \ 49 1.15 mycroft -o ${INFOOWN_${.ALLSRC}:U${INFOOWN}} \ 50 1.15 mycroft -g ${INFOGRP_${.ALLSRC}:U${INFOGRP}} \ 51 1.15 mycroft -m ${INFOMODE_${.ALLSRC}:U${INFOMODE}} \ 52 1.15 mycroft ${.ALLSRC} ${.TARGET} 53 1.15 mycroft ${INSTALL_INFO} --info-dir=${DESTDIR}${INFODIR} ${DESTDIR}${INFODIR}/${.ALLSRC} 54 1.1 tv 55 1.15 mycroft .for F in ${INFOFILES} 56 1.15 mycroft .if !defined(BUILD) && !make(all) && !make(${F}) 57 1.15 mycroft ${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: .MADE 58 1.15 mycroft .endif 59 1.15 mycroft ${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: ${F} __infoinstall 60 1.15 mycroft .endfor 61 1.15 mycroft .else 62 1.15 mycroft cleaninfo: 63 1.15 mycroft .endif 64 1.1 tv 65 1.1 tv # Make sure all of the standard targets are defined, even if they do nothing. 66 1.1 tv clean depend includes lint regress tags: 67