Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdbd391

Browse files
committed
Add support for the Macintosh Library Modules document.
1 parent 5b73cdf commit cdbd391

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

Doc/Makefile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,16 @@ VPATH=.
7575
RELEASE=1.5.1
7676
VERSION=1.5
7777

78-
DVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
79-
PDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
80-
PSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
78+
DVIFILES= api.dvi ext.dvi lib.dvi mac.dvi ref.dvi tut.dvi
79+
PDFFILES= api.pdf ext.pdf lib.pdf mac.pdf ref.pdf tut.pdf
80+
PSFILES= api.ps ext.ps lib.ps mac.ps ref.ps tut.ps
8181

8282
# Be careful when messing with this one!
8383
TEXINPUTS= .:../texinputs:
8484

8585
MKDVI= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh
86-
MKHTML= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkhtml.sh
86+
MKHOWTO= $(srcdir)/tools/mkhowto.sh --keep
87+
MKHTML= PAPER=$(PAPER) $(srcdir)/tools/mkhtml.sh
8788
MKPDF= TEXINPUTS=$(TEXINPUTS) $(srcdir)/tools/mkdvi.sh --pdf
8889

8990
# Main target
@@ -140,7 +141,7 @@ tut:
140141

141142
do-dvi: $(DVIFILES)
142143
do-pdf: $(PDFFILES)
143-
do-ps: $(PSFILES)
144+
do-ps: $(PSFILES)
144145

145146
# This target gets both the PDF and PS files updated.
146147
#
@@ -251,6 +252,13 @@ ext.dvi: ext/ext.tex
251252
ext.pdf: ext/ext.tex
252253
$(MKPDF) ext
253254

255+
# Macintosh Library Modules
256+
mac.dvi: $(MACLIBFILES) tools/mkhowto.sh
257+
$(MKHOWTO) --dvi $(srcdir)/$*/$*.tex
258+
259+
mac.pdf: $(MACLIBFILES) tools/mkhowto.sh
260+
$(MKHOWTO) --pdf $(srcdir)/$*/$*.tex
261+
254262
# Python Reference Manual
255263
ref.dvi: $(REFFILES)
256264
$(MKDVI) ref
@@ -290,19 +298,22 @@ COMMONPERL=perl/manual.perl perl/python.perl
290298
html: l2h
291299

292300
l2h:
293-
(cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs)
301+
(cd $(HTMLDIR); $(MAKE) TEXINPUTS=../paper-$(PAPER):../texinputs:)
294302

295303
l2hapi: $(COMMONPERL)
296304
$(MKHTML) api $(L2HARGS)
297305

298306
l2hext: $(COMMONPERL)
299307
$(MKHTML) ext $(L2HARGS)
300308

301-
l2hlib: $(COMMONPERL)
309+
l2hlib: $(COMMONPERL) $(LIBFILES)
302310
$(srcdir)/tools/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
303311
mv lib1.aux `$(KPSEWHICH) lib.aux`
304312
$(MKHTML) lib $(L2HARGS)
305313

314+
l2hmac: $(COMMONPERL) $(MACLIBFILES)
315+
$(srcdir)/tools/mkhowto.sh --html $(srcdir)/mac/mac.tex
316+
306317
l2href: $(COMMONPERL)
307318
$(MKHTML) ref $(L2HARGS)
308319

Doc/html/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TEXINPUTS=..:../texinputs
99

1010
all: icons l2h
1111

12-
l2h: l2hapi l2hext l2hlib l2href l2htut
12+
l2h: l2hapi l2hext l2hlib l2hmac l2href l2htut
1313

1414
l2hapi:
1515
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) -f ../Makefile l2hapi
@@ -20,6 +20,9 @@ l2hext:
2020
l2hlib:
2121
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) -f ../Makefile l2hlib
2222

23+
l2hmac:
24+
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) -f ../Makefile l2hmac
25+
2326
l2href:
2427
$(MAKE) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS) -f ../Makefile l2href
2528

0 commit comments

Comments
 (0)