From 079512d1a2e27143556af0a42e6f5a5c82ae3793 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 16 Dec 1997 18:29:48 +0000 Subject: [PATCH] Removed gross dir file bootstrap rule again. It would break building when there is no /usr/src/share/info if it were actually used. Added comments to explain duplicated tex commands. Use substitution in IFILENS to simplify some things. Removed /g from many substitutions. It is bogus for anchored matches. Don't echo nothing. Don't add things that wouldn't be built with the current options to CLEANFILES (except for some cases involving tex). Reviewed by: wosch --- share/mk/bsd.info.mk | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk index 0050b0bda8a2..39c9c8226b04 100644 --- a/share/mk/bsd.info.mk +++ b/share/mk/bsd.info.mk @@ -1,4 +1,4 @@ -# $Id: bsd.info.mk,v 1.45 1997/10/12 18:54:34 wosch Exp $ +# $Id: bsd.info.mk,v 1.46 1997/11/09 15:03:12 wosch Exp $ # # The include file handles installing GNU (tech)info files. # Texinfo is a documentation system that uses a single source @@ -102,10 +102,6 @@ DVIPS2ASCII?= dvips2ascii .SUFFIXES: ${ICOMPRESS_EXT} .info .texi .texinfo .dvi .ps .latin1 .html -# What to do if there's no dir file there. This is really gross!!! -${DESTDIR}${INFODIR}/${INFODIRFILE}: - @(cd /usr/src/share/info; make install) - .texi.info .texinfo.info: ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} \ -o ${.TARGET} @@ -113,6 +109,7 @@ ${DESTDIR}${INFODIR}/${INFODIRFILE}: .texi.dvi .texinfo.dvi: env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \ ${TEX} ${.IMPSRC} > ${.IMPSRC:T:R}-la.texi env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \ ${TEX} ${.IMPSRC:T:R}-la.texi ${.TARGET} .endfor -.endfor .for x in ${INFO} INSTALLINFODIRS+= ${x:S/$/-install/} @@ -190,22 +186,19 @@ ${INFO}.texi: ${SRCS} .endif depend: _SUBDIR - @echo -n - # tex garbage .if ${FORMATS:Mps} || ${FORMATS:Mdvi} || ${FORMATS:Mlatin1} .for _f in aux cp fn ky log out pg toc tp vr dvi -CLEANFILES+= ${INFO:S/$/.${_f}/g} ${INFO:S/$/-la.${_f}/g} +CLEANFILES+= ${INFO:S/$/.${_f}/} ${INFO:S/$/-la.${_f}/} .endfor -CLEANFILES+= ${INFO:S/$/-la.texi/g} +CLEANFILES+= ${INFO:S/$/-la.texi/} .endif .if ${FORMATS:Mhtml} -CLEANFILES+= ${INFO:S/$/.info.*.html/g} ${INFO:S/$/.info/g} +CLEANFILES+= ${INFO:S/$/.info.*.html/} ${INFO:S/$/.info/} .endif - .if !defined(NOINFO) && defined(INFO) install: ${INSTALLINFODIRS} _SUBDIR .if ${IFILES:N*.html} @@ -214,7 +207,7 @@ install: ${INSTALLINFODIRS} _SUBDIR .endif .if ${FORMATS:Mhtml} ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \ - ${INFO:S/$/.info.*.html/g} ${DESTDIR}${INFODIR} + ${INFO:S/$/.info.*.html/} ${DESTDIR}${INFODIR} .endif .else install: