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

Skip to content

Commit 520b009

Browse files
committed
Make sure we generate versions of each file in the Python/C API manual with
reference-count annotations; this is needed for the typeset forms of the manuals.
1 parent e16e54f commit 520b009

2 files changed

Lines changed: 52 additions & 3 deletions

File tree

Doc/Makefile

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
146146

147147
COMMONPERL= perl/manual.perl perl/python.perl perl/l2hinit.perl
148148

149+
ANNOAPI=api/refcounts.dat tools/anno-api.py
150+
149151
include Makefile.deps
150152

151153
# These must be declared phony since there
@@ -173,15 +175,45 @@ world: ps pdf html distfiles
173175

174176
# Targets for each document:
175177
# Python/C API Reference Manual
176-
paper-$(PAPER)/api.dvi: paper-$(PAPER)/api.tex $(APIFILES)
178+
paper-$(PAPER)/api.dvi: $(ANNOAPIFILES)
177179
cd paper-$(PAPER) && $(MKDVI) api.tex
178180

179-
paper-$(PAPER)/api.pdf: paper-$(PAPER)/api.tex $(APIFILES)
181+
paper-$(PAPER)/api.pdf: $(ANNOAPIFILES)
180182
cd paper-$(PAPER) && $(MKPDF) api.tex
181183

182-
paper-$(PAPER)/api.tex: api/api.tex api/refcounts.dat tools/anno-api.py
184+
paper-$(PAPER)/api.tex: api/api.tex $(ANNOAPI)
183185
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/api.tex
184186

187+
paper-$(PAPER)/abstract.tex: api/abstract.tex $(ANNOAPI)
188+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/abstract.tex
189+
190+
paper-$(PAPER)/concrete.tex: api/concrete.tex $(ANNOAPI)
191+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/concrete.tex
192+
193+
paper-$(PAPER)/exceptions.tex: api/exceptions.tex $(ANNOAPI)
194+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/exceptions.tex
195+
196+
paper-$(PAPER)/init.tex: api/init.tex $(ANNOAPI)
197+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/init.tex
198+
199+
paper-$(PAPER)/intro.tex: api/intro.tex $(ANNOAPI)
200+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/intro.tex
201+
202+
paper-$(PAPER)/memory.tex: api/memory.tex $(ANNOAPI)
203+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/memory.tex
204+
205+
paper-$(PAPER)/newtypes.tex: api/newtypes.tex $(ANNOAPI)
206+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/newtypes.tex
207+
208+
paper-$(PAPER)/refcounting.tex: api/refcounting.tex $(ANNOAPI)
209+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/refcounting.tex
210+
211+
paper-$(PAPER)/utilities.tex: api/utilities.tex $(ANNOAPI)
212+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/utilities.tex
213+
214+
paper-$(PAPER)/veryhigh.tex: api/veryhigh.tex $(ANNOAPI)
215+
$(PYTHON) $(TOOLSDIR)/anno-api.py -o $@ api/veryhigh.tex
216+
185217
# Distributing Python Modules
186218
paper-$(PAPER)/dist.dvi: $(DISTFILES)
187219
cd paper-$(PAPER) && $(MKDVI) ../dist/dist.tex

Doc/Makefile.deps

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ APIFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
3131
api/veryhigh.tex \
3232
texinputs/reportingbugs.tex
3333

34+
# These files are generated from those listed above, and are used to
35+
# generate the typeset versions of the manuals. The list is defined
36+
# here to make it easier to ensure parallelism.
37+
ANNOAPIFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
38+
paper-$(PAPER)/api.tex \
39+
paper-$(PAPER)/abstract.tex \
40+
paper-$(PAPER)/concrete.tex \
41+
paper-$(PAPER)/exceptions.tex \
42+
paper-$(PAPER)/init.tex \
43+
paper-$(PAPER)/intro.tex \
44+
paper-$(PAPER)/memory.tex \
45+
paper-$(PAPER)/newtypes.tex \
46+
paper-$(PAPER)/refcounting.tex \
47+
paper-$(PAPER)/utilities.tex \
48+
paper-$(PAPER)/veryhigh.tex \
49+
texinputs/reportingbugs.tex
50+
3451
DOCFILES= $(HOWTOSTYLES) \
3552
texinputs/boilerplate.tex \
3653
texinputs/ltxmarkup.sty \

0 commit comments

Comments
 (0)