Home | History | Annotate | Line # | Download | only in mk
bsd.info.mk revision 1.21
      1  1.21     enami #	$NetBSD: bsd.info.mk,v 1.21 2001/08/02 05:42:56 enami 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.20        tv cleandir: cleaninfo
     20  1.15   mycroft 
     21   1.5        tv .SUFFIXES: .txi .texi .texinfo .info
     22   1.1        tv 
     23   1.5        tv .txi.info .texi.info .texinfo.info:
     24  1.21     enami 	${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $<
     25   1.1        tv 
     26  1.15   mycroft .if defined(TEXINFO) && !empty(TEXINFO)
     27   1.5        tv INFOFILES=	${TEXINFO:C/\.te?xi(nfo)?$/.info/}
     28  1.11       erh .NOPATH:	${INFOFILES}
     29   1.1        tv 
     30  1.15   mycroft .if ${MKINFO} != "no"
     31  1.16   mycroft realinstall: infoinstall
     32  1.10   mycroft realall: ${INFOFILES}
     33   1.1        tv .endif
     34   1.1        tv 
     35   1.1        tv cleaninfo:
     36   1.1        tv 	rm -f ${INFOFILES}
     37  1.15   mycroft 
     38  1.15   mycroft infoinstall:: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
     39  1.15   mycroft .PRECIOUS: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
     40  1.15   mycroft .if !defined(UPDATE)
     41  1.15   mycroft .PHONY: ${INFOFILES:@F@${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}@}
     42   1.1        tv .endif
     43   1.1        tv 
     44  1.15   mycroft __infoinstall: .USE
     45  1.15   mycroft 	${INSTALL} ${RENAME} ${PRESERVE} ${COPY} ${INSTPRIV} \
     46  1.18   mycroft 	    -o ${INFOOWN_${.ALLSRC:T}:U${INFOOWN}} \
     47  1.18   mycroft 	    -g ${INFOGRP_${.ALLSRC:T}:U${INFOGRP}} \
     48  1.18   mycroft 	    -m ${INFOMODE_${.ALLSRC:T}:U${INFOMODE}} \
     49  1.15   mycroft 	    ${.ALLSRC} ${.TARGET}
     50  1.18   mycroft 	@${INSTALL_INFO} --remove --info-dir=${DESTDIR}${INFODIR} ${.TARGET}
     51  1.18   mycroft 	${INSTALL_INFO} --info-dir=${DESTDIR}${INFODIR} ${.TARGET}
     52   1.1        tv 
     53  1.19  sommerfe .for F in ${INFOFILES:O:u}
     54  1.15   mycroft .if !defined(BUILD) && !make(all) && !make(${F})
     55  1.15   mycroft ${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: .MADE
     56  1.15   mycroft .endif
     57  1.15   mycroft ${DESTDIR}${INFODIR_${F}:U${INFODIR}}/${INFONAME_${F}:U${INFONAME:U${F:T}}}: ${F} __infoinstall
     58  1.15   mycroft .endfor
     59  1.15   mycroft .else
     60  1.15   mycroft cleaninfo:
     61  1.15   mycroft .endif
     62   1.1        tv 
     63   1.1        tv # Make sure all of the standard targets are defined, even if they do nothing.
     64   1.1        tv clean depend includes lint regress tags:
     65