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

Skip to content

Commit 1508743

Browse files
committed
Add support for "Documenting Python".
1 parent 8df362c commit 1508743

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

Doc/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ world: ps pdf html tarballs
8484
api api.ps:
8585
(cd paper-$(PAPER); $(MAKE) api.ps)
8686

87+
doc doc.ps:
88+
(cd paper-$(PAPER); $(MAKE) doc.ps)
89+
8790
ext ext.ps:
8891
(cd paper-$(PAPER); $(MAKE) ext.ps)
8992

@@ -103,6 +106,9 @@ tut tut.ps:
103106
api.dvi:
104107
(cd paper-$(PAPER); $(MAKE) api.dvi)
105108

109+
doc.dvi:
110+
(cd paper-$(PAPER); $(MAKE) doc.dvi)
111+
106112
ext.dvi:
107113
(cd paper-$(PAPER); $(MAKE) ext.dvi)
108114

@@ -122,6 +128,9 @@ tut.dvi:
122128
api.pdf:
123129
(cd paper-$(PAPER); $(MAKE) api.pdf)
124130

131+
doc.pdf:
132+
(cd paper-$(PAPER); $(MAKE) doc.pdf)
133+
125134
ext.pdf:
126135
(cd paper-$(PAPER); $(MAKE) ext.pdf)
127136

Doc/Makefile.deps

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
APIFILES= ../api/api.tex
66

7+
DOCFILES= ../doc/doc.tex
8+
79
EXTFILES= ../ext/ext.tex
810

911
TUTFILES= ../tut/tut.tex

Doc/paper-letter/Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ TOOLSDIR= ../tools
1212
TEXINPUTS= .:../texinputs:
1313

1414
MKDVI= TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh
15+
# The --keep option is needed to keep the intermediate files for generating
16+
# the HTML global module index.
1517
MKHOWTO= $(TOOLSDIR)/mkhowto --keep
1618
MKPDF= TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --pdf
1719

1820

1921
# what's what
2022
MANDVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
21-
HOWTODVIFILES= mac.dvi
23+
HOWTODVIFILES= doc.dvi mac.dvi
2224

2325
MANPDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
24-
HOWTOPDFFILES= mac.pdf
26+
HOWTOPDFFILES= doc.pdf mac.pdf
2527

2628
MANPSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
27-
HOWTOPSFILES= mac.ps
29+
HOWTOPSFILES= doc.ps mac.ps
2830

2931
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
3032
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
@@ -104,6 +106,13 @@ api.dvi: $(APIFILES)
104106
api.pdf: $(APIFILES)
105107
$(MKPDF) api
106108

109+
# Documenting Python
110+
doc.dvi: $(DOCFILES) ../texinputs/ltxmarkup.sty
111+
$(MKHOWTO) --dvi ../doc/doc.tex
112+
113+
doc.pdf: $(DOCCFILES) ../texinputs/ltxmarkup.sty
114+
$(MKHOWTO) --pdf ../doc/doc.tex
115+
107116
# Extending and Embedding the Python Interpreter
108117
ext.dvi: $(EXTFILES)
109118
$(MKDVI) ext

0 commit comments

Comments
 (0)