44# See also the README file.
55#
66# This is a bit of a mess. The main documents are:
7- # tut -- Tutorial
7+ # api -- Python/C API Reference Manual
8+ # ext -- Extending and Embedding the Python Interpreter
9+ # lib -- Library Reference Manual
810# ref -- Python Reference Manual
9- # lib -- Library Reference
10- # ext -- Extending and Embedding
11- # api -- Python-C API Reference
11+ # tut -- Python Tutorial
1212#
1313# The latex sources for each of these documents are in subdirectories
1414# with the three-letter designations above as the directory names.
1515#
16- # The main target "make all" creates DVI and PostScript for the main
17- # targets . You can also do "make lib" (etc.) to process individual
16+ # The main target creates DVI and PostScript for the main each of the
17+ # documents . You can also do "make lib" (etc.) to process individual
1818# documents.
1919#
2020# The document classes and styles are in the texinputs/ directory.
2323# number of environments for formatting function and data definitions,
2424# also in the style of Texinfo.
2525#
26- # Everything is processed by LaTeX. The following tools are used:
27- # latex
28- # makeindex
29- # dvips
26+ # Everything is processed by LaTeX. See the file `README' for more
27+ # information on the tools needed for processing.
3028#
3129# There's a problem with generating the index which has been solved by
3230# a sed command applied to the index file. The shell script fix_hack
3331# does this (the Makefile takes care of calling it).
3432#
35- # To preview the dvi files produced by LaTeX it would be useful to
36- # have xdvi as well.
37- #
3833# Additional targets attempt to convert selected LaTeX sources to
3934# various other formats. These are generally site specific because
4035# the tools used are all but universal. These targets are:
4136# l2h -- convert tut, ref, lib, ext, api from LaTeX to HTML
4237# See the README file for more info on these targets.
38+ #
39+ # The formatted output is located in subdirectories. For PDF and
40+ # PostScript, look in the paper-$(PAPER)/ directory. For HTML, look in
41+ # the html/ directory. If you fix the GNU info process, look in the
42+ # info/ directory.
4343
4444# Customizations -- you *may* have to edit these
4545
@@ -104,7 +104,39 @@ all-ps:
104104 $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
105105 -f ../Makefile do-ps)
106106
107- world : do-ps do-pdf l2h tarballs
107+ world : all-ps all-pdf l2h tarballs
108+
109+
110+ # Targets for each document:
111+ .PHONY : api ext lib ref tut
112+
113+ api :
114+ (cd paper-$( PAPER) ; \
115+ $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
116+ -f ../Makefile api.ps)
117+
118+ ext :
119+ (cd paper-$( PAPER) ; \
120+ $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
121+ -f ../Makefile ext.ps)
122+
123+ lib :
124+ (cd paper-$( PAPER) ; \
125+ $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
126+ -f ../Makefile lib.ps)
127+
128+ ref :
129+ (cd paper-$( PAPER) ; \
130+ $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
131+ -f ../Makefile ref.ps)
132+
133+ tut :
134+ (cd paper-$( PAPER) ; \
135+ $(MAKE ) srcdir=.. VPATH=.. TEXINPUTS=$(TEXINPUTS ) \
136+ -f ../Makefile tut.ps)
137+
138+
139+ # Internal targets:
108140
109141do-dvi : $(DVIFILES )
110142do-pdf : $(PDFFILES )
@@ -237,7 +269,7 @@ tut.pdf: tut/tut.tex
237269# The remaining part of the Makefile is concerned with various
238270# conversions, as described above. See also the README file.
239271
240- .PHONY : info
272+ .PHONY : html info
241273
242274info :
243275 (cd $( INFODIR) ; $( MAKE) )
@@ -255,6 +287,8 @@ info:
255287
256288COMMONPERL =perl/manual.perl perl/python.perl
257289
290+ html : l2h
291+
258292l2h :
259293 (cd $( HTMLDIR) ; $( MAKE) TEXINPUTS=../paper-$( PAPER) :../texinputs)
260294
@@ -284,17 +318,16 @@ webcheck:
284318 $(WEBCHECKER ) file:` pwd` /tut/
285319
286320lib-info-$(RELEASE ) .tar.gz : info
287- tar cf - -C $(INFODIR ) python-??? .info* | gzip -9 > $@
321+ (cd $( INFODIR) ; tar cf - python-??? .info* ) | gzip -9 > $@
288322
289323latex-$(RELEASE ) .tar.gz :
290324 $(srcdir ) /tools/mktarball.sh
291325
292- # This snags a PDF version if available, but doesn't fail if not.
293- pdf-$(RELEASE ) .tar.gz : $(PDFFILES )
294- tar cf - -C paper-$(PAPER ) ??? .pdf | gzip -9 > $@
326+ pdf-$(RELEASE ) .tar.gz : all-pdf
327+ (cd paper-$( PAPER) ; tar cf - $( PDFFILES) ) | gzip -9 > $@
295328
296- postscript-$(RELEASE ) .tar.gz : $( PSFILES )
297- tar cf - -C paper- $( PAPER ) ??? .ps | gzip -9 > $@
329+ postscript-$(RELEASE ) .tar.gz : all-ps
330+ (cd paper- $( PAPER ) ; tar cf - $( PSFILES ) ) | gzip -9 > $@
298331
299332html-$(RELEASE ) .tar.gz :
300333 tar cf - -C $(HTMLDIR ) index.html ??? /??? .css ??? /* .html * /* .gif \
0 commit comments