@@ -146,6 +146,8 @@ ALLHTMLFILES=$(INDEXFILES) html/index.html html/modindex.html html/acks.html
146146
147147COMMONPERL = perl/manual.perl perl/python.perl perl/l2hinit.perl
148148
149+ ANNOAPI =api/refcounts.dat tools/anno-api.py
150+
149151include 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
186218paper-$(PAPER ) /dist.dvi : $(DISTFILES )
187219 cd paper-$(PAPER ) && $(MKDVI ) ../dist/dist.tex
0 commit comments