aboutsummaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2001-09-17 09:45:01 +0000
committerMurray Stokely <murray@FreeBSD.org>2001-09-17 09:45:01 +0000
commit8577fa90a474b06cee526df3dc1ad50746ae8f58 (patch)
tree56158900f949e43725967c0ddcf3c267db947803 /share/mk
parent6d4732976226afeccbcec6cedca5bc58e261b122 (diff)
downloaddoc-8577fa90a474b06cee526df3dc1ad50746ae8f58.tar.gz
doc-8577fa90a474b06cee526df3dc1ad50746ae8f58.zip
Add a knob to trace TeX's memory usage. This is useful when you're
using tons of different macro packages (like we do) and something is misbehaving. ``make TRACE=1 book.ps''
Notes
Notes: svn path=/head/; revision=10714
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/doc.docbook.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index 29ec14a95b..84535f7742 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -1,5 +1,5 @@
#
-# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.48 2001/09/11 00:38:32 murray Exp $
+# $FreeBSD: doc/share/mk/doc.docbook.mk,v 1.49 2001/09/11 02:32:32 murray Exp $
#
# This include file <doc.docbook.mk> handles building and installing of
# DocBook documentation in the FreeBSD Documentation Project.
@@ -66,6 +66,11 @@
# "N.N.N.N Section title" into "Section Title" while
# higher level sections are still printed with numbers.
#
+# TRACE={1,2} Trace TeX's memory usage. Set this to 1 for minimal
+# tracing or 2 for maximum tracing. TeX memory
+# statistics will be written out to <filename>.log.
+# For more information see the TeXbook, p301.
+#
# TWO_SIDE If defined, two sided output will be created. This
# means that new chapters will only start on odd
# numbered (aka right side, aka recto) pages and the
@@ -146,6 +151,9 @@ PRINTOPTS+= -ioutput.print.niceheaders
.if defined(MIN_SECT_LABELS)
PRINTOPTS+= -V minimal-section-labels
.endif
+.if defined(TRACE)
+TEXCMDS+= \tracingstats=${TRACE}
+.endif
# ------------------------------------------------------------------------
#