@@ -76,6 +76,9 @@ MKHTML= $(PYTHON) tools/mkhowto --html --about html/stdabout.dat \
7676 --address $(PYTHONDOCS ) --up-link ../index.html \
7777 --up-title "Python Documentation Index" \
7878 --global-module-index "../modindex.html"
79+ MKISILOHTML =$(PYTHON ) tools/mkhowto --html --about html/stdabout.dat \
80+ --l2h-init perl/isilo.perl --numeric --split 1
81+ MKISILO = iSilo386 -U -y -rCR -d0
7982MKPDF = $(PYTHON ) ../tools/mkhowto --paper=$(PAPER ) --pdf
8083MKPS = $(PYTHON ) ../tools/mkhowto --paper=$(PAPER ) --ps
8184
@@ -126,7 +129,7 @@ include Makefile.deps
126129# These must be declared phony since there
127130# are directories with matching names:
128131.PHONY : api doc ext lib mac ref tut inst dist
129- .PHONY : html info
132+ .PHONY : html info isilo
130133
131134
132135# Main target
@@ -290,6 +293,104 @@ dist html/dist/dist.html: $(DISTFILES) perl/distutils.perl
290293 $(MKHTML ) --dir html/dist --split 4 dist/dist.tex
291294
292295
296+ # The iSilo format is used by the iSilo document reader for PalmOS devices.
297+
298+ ISILOINDEXFILES =isilo/api/api.html \
299+ isilo/doc/doc.html \
300+ isilo/ext/ext.html \
301+ isilo/lib/lib.html \
302+ isilo/mac/mac.html \
303+ isilo/ref/ref.html \
304+ isilo/tut/tut.html \
305+ isilo/inst/inst.html \
306+ isilo/dist/dist.html
307+
308+ $(ISILOINDEXFILES ) : $(COMMONPERL ) html/about.dat perl/isilo.perl
309+
310+ isilo : isilo/python-api-$(RELEASE ) .pdb \
311+ isilo/python-doc-$(RELEASE ) .pdb \
312+ isilo/python-ext-$(RELEASE ) .pdb \
313+ isilo/python-lib-$(RELEASE ) .pdb \
314+ isilo/python-mac-$(RELEASE ) .pdb \
315+ isilo/python-ref-$(RELEASE ) .pdb \
316+ isilo/python-tut-$(RELEASE ) .pdb \
317+ isilo/python-dist-$(RELEASE ) .pdb \
318+ isilo/python-inst-$(RELEASE ) .pdb
319+
320+ isilo/python-api-$(RELEASE ) .pdb : isilo/api/api.html
321+ $(MKISILO ) " -iPython/C API Reference Manual" \
322+ isilo/api/api.html $@
323+
324+ isilo/python-doc-$(RELEASE ) .pdb : isilo/doc/doc.html
325+ $(MKISILO ) " -iDocumenting Python" \
326+ isilo/doc/doc.html $@
327+
328+ isilo/python-ext-$(RELEASE ) .pdb : isilo/ext/ext.html
329+ $(MKISILO ) " -iExtending & Embedding Python" \
330+ isilo/ext/ext.html $@
331+
332+ isilo/python-lib-$(RELEASE ) .pdb : isilo/lib/lib.html
333+ $(MKISILO ) " -iPython Library Reference" \
334+ isilo/lib/lib.html $@
335+
336+ isilo/python-mac-$(RELEASE ) .pdb : isilo/mac/mac.html
337+ $(MKISILO ) " -iPython/C API Reference Manual" \
338+ isilo/mac/mac.html $@
339+
340+ isilo/python-ref-$(RELEASE ) .pdb : isilo/ref/ref.html
341+ $(MKISILO ) " -iPython Reference Manual" \
342+ isilo/ref/ref.html $@
343+
344+ isilo/python-tut-$(RELEASE ) .pdb : isilo/tut/tut.html
345+ $(MKISILO ) " -iPython Tutorial" \
346+ isilo/tut/tut.html $@
347+
348+ isilo/python-dist-$(RELEASE ) .pdb : isilo/dist/dist.html
349+ $(MKISILO ) " -iDistributing Python Modules" \
350+ isilo/dist/dist.html $@
351+
352+ isilo/python-inst-$(RELEASE ) .pdb : isilo/inst/inst.html
353+ $(MKISILO ) " -iInstalling Python Modules" \
354+ isilo/inst/inst.html $@
355+
356+ isilo/api/api.html : $(APIFILES )
357+ $(MKISILOHTML ) --dir isilo/api api/api.tex
358+
359+ isilo/doc/doc.html : $(DOCFILES )
360+ $(MKISILOHTML ) --dir isilo/doc doc/doc.tex
361+
362+ isilo/ext/ext.html : $(EXTFILES )
363+ $(MKISILOHTML ) --dir isilo/ext ext/ext.tex
364+
365+ isilo/lib/lib.html : $(LIBFILES )
366+ $(MKISILOHTML ) --dir isilo/lib lib/lib.tex
367+
368+ isilo/mac/mac.html : $(MACFILES )
369+ $(MKISILOHTML ) --dir isilo/mac mac/mac.tex
370+
371+ isilo/ref/ref.html : $(REFFILES )
372+ $(MKISILOHTML ) --dir isilo/ref ref/ref.tex
373+
374+ isilo/tut/tut.html : $(TUTFILES )
375+ $(MKISILOHTML ) --dir isilo/tut tut/tut.tex
376+
377+ isilo/inst/inst.html : $(INSTFILES ) perl/distutils.perl
378+ $(MKISILOHTML ) --dir isilo/inst inst/inst.tex
379+
380+ isilo/dist/dist.html : $(DISTFILES ) perl/distutils.perl
381+ $(MKISILOHTML ) --dir isilo/dist dist/dist.tex
382+
383+ # These are useful if you need to transport the iSilo-ready HTML to
384+ # another machine to perform the conversion:
385+
386+ isilozip : isilo-html-$(RELEASE ) .zip
387+
388+ isilo-html-$(RELEASE ) .zip : $(ISILOINDEXFILES )
389+ rm -f $@
390+ cd isilo && \
391+ zip -q -9 ../$@ * /* .css * /* .html * /* .txt
392+
393+
293394# webchecker needs an extra flag to process the huge index from the libref
294395WEBCHECKER =$(PYTHON ) ../Tools/webchecker/webchecker.py
295396HTMLBASE = file:` pwd ` /html
@@ -382,6 +483,10 @@ html-$(RELEASE).zip: $(ALLHTMLFILES)
382483 cd html && \
383484 zip -q -9 ../$@ * .html * /* .css * /* .html * /* .gif * /* .txt
384485
486+ isilo-$(RELEASE ) .zip : isilo
487+ cd isilo && zip -q -9 ../$@ python-* -$(RELEASE ) .pdb
488+
489+
385490# convenience targets:
386491
387492tarhtml : html-$(RELEASE ) .tgz
@@ -396,6 +501,7 @@ ziphtml: html-$(RELEASE).zip
396501zipps : postscript-$(PAPER ) -$(RELEASE ) .zip
397502zippdf : pdf-$(PAPER ) -$(RELEASE ) .zip
398503ziplatex : latex-$(RELEASE ) .zip
504+ zipisilo : isilo-$(RELEASE ) .zip
399505
400506zips : zippdf zipps ziphtml
401507
@@ -441,5 +547,8 @@ clobber:
441547 rm -rf html/index.html html/modindex.html html/acks.html
442548 rm -rf html/api/ html/doc/ html/ext/ html/lib/ html/mac/
443549 rm -rf html/ref/ html/tut/ html/inst/ html/dist/
550+ rm -rf isilo/api/ isilo/doc/ isilo/ext/ isilo/lib/ isilo/mac/
551+ rm -rf isilo/ref/ isilo/tut/ isilo/inst/ isilo/dist/
552+ rm -f isilo/python-* -$(RELEASE ) .pdb isilo-$(RELEASE ) .zip
444553
445554realclean distclean : clobber
0 commit comments