summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-05-15 17:02:10 (GMT)
committerFred Drake <fdrake@acm.org>1998-05-15 17:02:10 (GMT)
commitcdbd391415b16eb241314f957eb2fc332aacd234 (patch)
tree88f57bacb3e06ad15b2c29869ced259e73920326 /Doc/Makefile
parent5b73cdfe60f7fafe3fe67b3c9327a8b3d2e8ee63 (diff)
downloadcpython-cdbd391415b16eb241314f957eb2fc332aacd234.zip
cpython-cdbd391415b16eb241314f957eb2fc332aacd234.tar.gz
cpython-cdbd391415b16eb241314f957eb2fc332aacd234.tar.bz2
Add support for the Macintosh Library Modules document.
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 170507e..5d22a87 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -75,15 +75,16 @@ VPATH=.
RELEASE=1.5.1
VERSION=1.5
-DVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
-PDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
-PSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
+DVIFILES= api.dvi ext.dvi lib.dvi mac.dvi ref.dvi tut.dvi
+PDFFILES= api.pdf ext.pdf lib.pdf mac.pdf ref.pdf tut.pdf
+PSFILES= api.ps ext.ps lib.ps mac.ps ref.ps tut.ps
# Be careful when messing with this one!
TEXINPUTS= .:../texinputs:
MKDVI= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh
-MKHTML= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkhtml.sh
+MKHOWTO= $(srcdir)/tools/mkhowto.sh --keep
+MKHTML= PAPER=$(PAPER) $(srcdir)/tools/mkhtml.sh
MKPDF= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh --pdf
# Main target
@@ -140,7 +141,7 @@ tut:
do-dvi: $(DVIFILES)
do-pdf: $(PDFFILES)
-do-ps: $(PSFILES)
+do-ps: $(PSFILES)
# This target gets both the PDF and PS files updated.
#
@@ -251,6 +252,13 @@ ext.dvi: ext/ext.tex
ext.pdf: ext/ext.tex
$(MKPDF) ext
+# Macintosh Library Modules
+mac.dvi: $(MACLIBFILES) tools/mkhowto.sh
+ $(MKHOWTO) --dvi $(srcdir)/$*/$*.tex
+
+mac.pdf: $(MACLIBFILES) tools/mkhowto.sh
+ $(MKHOWTO) --pdf $(srcdir)/$*/$*.tex
+
# Python Reference Manual
ref.dvi: $(REFFILES)
$(MKDVI) ref
@@ -290,7 +298,7 @@ COMMONPERL=perl/manual.perl perl/python.perl
html: l2h
l2h:
- (cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs)
+ (cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs:)
l2hapi: $(COMMONPERL)
$(MKHTML) api $(L2HARGS)
@@ -298,11 +306,14 @@ l2hapi: $(COMMONPERL)
l2hext: $(COMMONPERL)
$(MKHTML) ext $(L2HARGS)
-l2hlib: $(COMMONPERL)
+l2hlib: $(COMMONPERL) $(LIBFILES)
$(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
mv lib1.aux `$(KPSEWHICH) lib.aux`
$(MKHTML) lib $(L2HARGS)
+l2hmac: $(COMMONPERL) $(MACLIBFILES)
+ $(srcdir)/tools/mkhowto.sh --html $(srcdir)/mac/mac.tex
+
l2href: $(COMMONPERL)
$(MKHTML) ref $(L2HARGS)