11# Generate the Python "info" documentation.
22
3- PAPER =letter
43TOPDIR =..
54TOOLSDIR =$(TOPDIR ) /tools
6- PAPERDIR =$(TOPDIR ) /paper-$(PAPER )
75HTMLDIR =$(TOPDIR ) /html
86
97MKINFO =$(TOOLSDIR ) /mkinfo
108SCRIPTS =$(TOOLSDIR ) /html2texi.pl $(TOOLSDIR ) /checkargs.pm $(TOOLSDIR ) /mkinfo \
119 $(TOOLSDIR ) /fixinfo.el
1210
1311all : python-api.info python-ext.info python-lib.info \
14- python-ref.info python-tut.info
12+ python-ref.info python-tut.info \
13+ python-dist.info python-inst.info
1514
1615
1716python-api.info : $(HTMLDIR ) /api/api.html $(SCRIPTS )
@@ -33,6 +32,11 @@ python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
3332python-tut.info : $(HTMLDIR ) /tut/tut.html $(SCRIPTS )
3433 $(MKINFO ) $<
3534
35+ python-dist.info : $(HTMLDIR ) /dist/dist.html $(SCRIPTS )
36+ $(MKINFO ) $<
37+
38+ python-inst.info : $(HTMLDIR ) /inst/inst.html $(SCRIPTS )
39+ $(MKINFO ) $<
3640
3741clean :
3842 rm -f * .texi~ * .texi
@@ -41,42 +45,29 @@ clobber: clean
4145 rm -f * .texi python-* .info python-* .info-[0-9]*
4246
4347
44- # The HTML files are dependent on the .aux files, which are dependent on the
45- # LaTeX source documents. This makes sure we can build info files from a
46- # "clean" tree:
47-
48- $(HTMLDIR ) /api/api.html : $(PAPERDIR ) /api.aux $(BUILDINDEX )
49- (cd $( TOPDIR) ; $( MAKE) htmlapi)
50-
51- $(HTMLDIR ) /ext/ext.html : $(PAPERDIR ) /ext.aux
52- (cd $( TOPDIR) ; $( MAKE) htmlext)
53-
54- $(HTMLDIR ) /lib/lib.html : $(PAPERDIR ) /lib.aux $(BUILDINDEX )
55- (cd $( TOPDIR) ; $( MAKE) htmllib)
56-
57- $(HTMLDIR ) /mac/mac.html : $(MACFILES ) $(BUILDINDEX )
58- (cd $( TOPDIR) ; $( MAKE) htmlmac)
59-
60- $(HTMLDIR ) /ref/ref.html : $(PAPERDIR ) /ref.aux $(BUILDINDEX )
61- (cd $( TOPDIR) ; $( MAKE) htmlref)
48+ # This makes sure we can build info files from a "clean" tree,
49+ # in case we haven't already built the HTML:
6250
63- $(HTMLDIR ) /tut/tut .html : $( PAPERDIR ) /tut.aux
64- (cd $( TOPDIR ) ; $( MAKE) htmltut )
51+ $(HTMLDIR ) /api/api .html :
52+ (cd $( HTMLDIR ) ; $( MAKE) api )
6553
54+ $(HTMLDIR ) /ext/ext.html :
55+ (cd $( HTMLDIR) ; $( MAKE) ext)
6656
67- include ../Makefile.deps
57+ $(HTMLDIR ) /lib/lib.html :
58+ (cd $( HTMLDIR) ; $( MAKE) lib)
6859
69- $(PAPERDIR ) /api.aux : $( APIFILES )
70- (cd $( PAPERDIR ) ; $( MAKE) PAPER= $( PAPER ) api.dvi )
60+ $(HTMLDIR ) /mac/mac.html :
61+ (cd $( HTMLDIR ) ; $( MAKE) mac )
7162
72- $(PAPERDIR ) /ext.aux : $( EXTFILES )
73- (cd $( PAPERDIR ) ; $( MAKE) PAPER= $( PAPER ) ext.dvi )
63+ $(HTMLDIR ) /ref/ref.html :
64+ (cd $( HTMLDIR ) ; $( MAKE) ref )
7465
75- $(PAPERDIR ) /lib.aux : $( LIBFILES )
76- (cd $( PAPERDIR ) ; $( MAKE) PAPER= $( PAPER ) lib.dvi )
66+ $(HTMLDIR ) /tut/tut.html :
67+ (cd $( HTMLDIR ) ; $( MAKE) tut )
7768
78- $(PAPERDIR ) /ref.aux : $( REFFILES )
79- (cd $( PAPERDIR ) ; $( MAKE) PAPER= $( PAPER ) ref.dvi )
69+ $(HTMLDIR ) /dist/dist.html :
70+ (cd $( HTMLDIR ) ; $( MAKE) dist )
8071
81- $(PAPERDIR ) /tut.aux : $( TUTFILES )
82- (cd $( PAPERDIR ) ; $( MAKE) PAPER= $( PAPER ) tut.dvi )
72+ $(HTMLDIR ) /inst/inst.html :
73+ (cd $( HTMLDIR ) ; $( MAKE) inst )
0 commit comments