From df053999a9129b14a64e5e534d90402d05013b27 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 26 May 2007 02:35:50 +0000 Subject: [PATCH] latex Guidebook [1 of 2] (trunk only) Last fall when Michael added the symset stuff to supersede the old handling for IBMgraphics and DECgraphics, Guidebook.tex was changed to support multi-page tables in the output. But that requires that the input be processed twice, because it requires feedback stored in Guidebook.aux and the first pass can't rely on that file being present or up to date. This updates the Unix, VMS, and OS/2 makefiles to do two-pass processing. (I didn't see latex usage anywhere else, and the branch version doesn't include the formatting change which needs this.) --- sys/os2/Makefile.os2 | 6 +++++- sys/unix/Makefile.doc | 4 +++- sys/vms/Makefile.doc | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sys/os2/Makefile.os2 b/sys/os2/Makefile.os2 index e52f6e3e4..31d4d7b54 100644 --- a/sys/os2/Makefile.os2 +++ b/sys/os2/Makefile.os2 @@ -1,4 +1,4 @@ -# SCCS Id: @(#)Makefile.os2 3.5 2006/01/07 +# SCCS Id: @(#)Makefile.os2 3.5 2007/05/25 # OS/2 NetHack 3.5 Makefile for OS/2 versions 1.x and 2.x # Copyright (C) 1990, 1991, 1992, 1993, 1996 Timo Hakulinen # @@ -1458,8 +1458,12 @@ $(GAMEDIR)\nethack.cnf : # # Documentation. # +# LaTeX needs to be run twice. +# The second pass uses the $(GUIDEBOO).aux file made by the first. +# $(TEMP)\$(GUIDEBOO).dvi : $(DOC)\$(GUIDEBOO).tex + $(LATEX) $(DOC)\$(GUIDEBOO).tex $(LATEX) $(DOC)\$(GUIDEBOO).tex $(CP) $(GUIDEBOO).dvi $(TEMP) $(CP) $(GUIDEBOO).aux $(TEMP) diff --git a/sys/unix/Makefile.doc b/sys/unix/Makefile.doc index 8244fef77..e9ab86743 100644 --- a/sys/unix/Makefile.doc +++ b/sys/unix/Makefile.doc @@ -1,5 +1,5 @@ # NetHack Makefile. -# SCCS Id: @(#)Makefile.doc 3.5 1996/03/23 +# SCCS Id: @(#)Makefile.doc 3.5 2007/05/25 # for Atari # SHELL=E:/GEMINI2/MUPFEL.TTP @@ -36,8 +36,10 @@ Guidebook.ps: Guidebook.mn # Guidebook.tex is the same as Guidebook.mn but formatted with LaTeX. # - The invocation command for LaTeX may vary in different installations. # - To print Guidebook.dvi you need to use a suitable dvi-driver. +# - LaTeX needs to be run twice; second pass uses Guidebook.aux made by first. Guidebook.dvi: Guidebook.tex latex Guidebook.tex + latex Guidebook.tex GAME = nethack diff --git a/sys/vms/Makefile.doc b/sys/vms/Makefile.doc index cd5aa2947..228b1a37a 100644 --- a/sys/vms/Makefile.doc +++ b/sys/vms/Makefile.doc @@ -1,5 +1,5 @@ # NetHack Makefile (VMS) - for the [Unix] documentation. -# SCCS Id: @(#)Makefile.doc 3.5 1993/01/06 +# SCCS Id: @(#)Makefile.doc 3.5 2007/05/25 # Copy this file to [.doc]Makefile. and edit it if needed. @@ -32,8 +32,10 @@ Guidebook.ps : Guidebook.dvi # generated with LaTeX # Guidebook.tex is the same as Guidebook.mn but formatted with LaTeX. # - The invocation command for LaTeX may vary in different installations. # - To print Guidebook.dvi you need to use a suitable dvi-driver. +# - LaTeX needs to be run twice; second pass uses Guidebook.aux made by first. Guidebook.dvi : Guidebook.tex latex Guidebook.tex + latex Guidebook.tex all : $(ALLDOCS) $(NOOP)