summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-10-04 13:00:56 +0000
committerwosch <wosch@FreeBSD.org>1997-10-04 13:00:56 +0000
commite772f46053a59b9d0daa941ad34bb1f407431d33 (patch)
tree82ff2b4ca8e95daa3a4bac7d6029709a307e0ffb /share/mk
parentceaace095802a2786a96a51f90cb97ebabafce26 (diff)
downloadFreeBSD-src-e772f46053a59b9d0daa941ad34bb1f407431d33.zip
FreeBSD-src-e772f46053a59b9d0daa941ad34bb1f407431d33.tar.gz
Delete redundant entries.
Run tex twice due cross references. Cleanup many tex generated files in `make clean' Format latin1 output in 80 characters column (was ~110 characters).
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.info.mk36
1 files changed, 21 insertions, 15 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
index da88112..0fa2256 100644
--- a/share/mk/bsd.info.mk
+++ b/share/mk/bsd.info.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.info.mk,v 1.40 1997/06/21 15:40:31 jkh Exp $
+# $Id: bsd.info.mk,v 1.1 1997/10/02 21:17:10 wosch Exp wosch $
#
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
# Texinfo is a documentation system that uses a single source
@@ -93,31 +93,30 @@ FORMATS?= info
${DESTDIR}${INFODIR}/${INFODIRFILE}:
@(cd /usr/src/share/info; make install)
-.texi.info:
+.texi.info .texinfo.info:
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} \
-o ${.TARGET}.new
mv -f ${.TARGET}.new ${.TARGET}
-.texinfo.info:
- ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} \
- -o ${.TARGET}.new
- mv -f ${.TARGET}.new ${.TARGET}
-
-.texi.dvi:
+.texi.dvi .texinfo.dvi:
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
tex ${.IMPSRC} </dev/null
-
-.texinfo.dvi:
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
tex ${.IMPSRC} </dev/null
+.texinfo.latin1 .texi.latin1:
+ perl -npe 's/(^\s*\\input\s+texinfo\s+)/$$1\n@tex\n\\global\\hsize=120mm\n@end tex\n\n/' ${.IMPSRC} >> ${.IMPSRC:T:R}-la.texi
+ env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
+ tex ${.IMPSRC:T:R}-la.texi </dev/null
+ env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
+ tex ${.IMPSRC:T:R}-la.texi </dev/null
+ dvips -o /dev/stdout ${.IMPSRC:T:R}-la.dvi | \
+ dvips2ascii > ${.TARGET}.new
+ mv -f ${.TARGET}.new ${.TARGET}
+
.dvi.ps:
dvips -o ${.TARGET} ${.IMPSRC}
-.ps.latin1:
- dvips2ascii ${.IMPSRC} > ${.TARGET}.new
- mv -f ${.TARGET}.new ${.TARGET}
-
.PATH: ${.CURDIR} ${SRCDIR}
.for _f in ${FORMATS}
@@ -178,8 +177,15 @@ depend: _SUBDIR
@echo -n
.for _f in ${FORMATS}
-CLEANFILES+=${INFO:S/$/.${_f}*/g}
+CLEANFILES+=${INFO:S/$/.${_f}*/g} ${INFO:S/$/-la.${_f}*/g}
.endfor
+CLEANFILES+= ${INFO:S/$/-la.texi/g}
+
+# tex garbage
+.for _f in aux cp fn ky log out pg toc tp vr dvi
+CLEANFILES+= ${INFO:S/$/.${_f}/g} ${INFO:S/$/-la.${_f}/g}
+.endfor
+
.if !defined(NOINFO) && defined(INFO)
install: ${INSTALLINFODIRS} _SUBDIR
OpenPOWER on IntegriCloud