1998-05-07 11:50:22 -03:00
|
|
|
# Convenience Makefile for building HTML documentation. You probably need to
|
|
|
|
# set TEXINPUTS from the command line for this to be useful, unless you
|
|
|
|
# actually build the .dvi files in the top level directory.
|
|
|
|
#
|
|
|
|
# Note that the .dvi files must already be built and TEXINPUTS must include the
|
|
|
|
# directory where latex's working files (esp. *.aux) are kept.
|
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
PAPER=letter
|
1998-08-11 16:36:35 -03:00
|
|
|
TOPDIR=..
|
1998-08-12 14:06:03 -03:00
|
|
|
TOOLSDIR=$(TOPDIR)/tools
|
|
|
|
PAPERDIR=$(TOPDIR)/paper-$(PAPER)
|
1998-08-11 16:36:35 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
|
1998-08-11 16:36:35 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
# Where are the various programs?
|
1999-02-15 15:29:08 -04:00
|
|
|
PYTHON= python
|
|
|
|
WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
|
|
|
|
MKAUX= PAPER=$(PAPER) TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --aux
|
|
|
|
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
|
|
|
|
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
|
1998-08-11 16:36:35 -03:00
|
|
|
|
1999-02-15 15:29:08 -04:00
|
|
|
BUILDINDEX=$(TOOLSDIR)/buildindex.py
|
1999-01-05 11:49:39 -04:00
|
|
|
|
1999-02-12 17:42:23 -04:00
|
|
|
# make it clear to l2h, since our support only generates HTML 4.0
|
1999-02-15 15:29:08 -04:00
|
|
|
L2HARGS= -html_version 4.0
|
|
|
|
|
|
|
|
HTMLBASE= file:`pwd`
|
1999-02-12 17:42:23 -04:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
INDEXFILES=api/api.html \
|
|
|
|
ext/ext.html \
|
|
|
|
lib/lib.html \
|
|
|
|
mac/mac.html \
|
|
|
|
ref/ref.html \
|
|
|
|
tut/tut.html
|
1998-08-11 16:36:35 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
COMMONPERL= $(TOPDIR)/perl/manual.perl \
|
1998-08-13 16:03:19 -03:00
|
|
|
$(TOPDIR)/perl/python.perl \
|
|
|
|
$(TOPDIR)/perl/l2hinit.perl
|
1998-05-07 11:50:22 -03:00
|
|
|
|
|
|
|
|
1999-02-15 17:43:55 -04:00
|
|
|
all: $(INDEXFILES)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
.PHONY: api ext lib mac ref tut
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-02-15 17:43:55 -04:00
|
|
|
api: api/api.html
|
|
|
|
ext: ext/ext.html
|
|
|
|
lib: lib/lib.html
|
|
|
|
mac: mac/mac.html
|
|
|
|
ref: ref/ref.html
|
|
|
|
tut: tut/tut.html
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-11-30 16:28:35 -04:00
|
|
|
$(INDEXFILES): $(COMMONPERL) $(TOPDIR)/html/about.dat
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-01-05 11:49:39 -04:00
|
|
|
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
|
1998-08-12 14:06:03 -03:00
|
|
|
$(MKHTML) api $(L2HARGS)
|
1998-05-15 14:02:10 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
ext/ext.html: $(PAPERDIR)/ext.aux
|
|
|
|
$(MKHTML) ext $(L2HARGS)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-01-05 11:49:39 -04:00
|
|
|
lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
|
1998-08-12 14:06:03 -03:00
|
|
|
$(TOOLSDIR)/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
|
|
|
|
mv lib1.aux `$(KPSEWHICH) lib.aux`
|
|
|
|
$(MKHTML) lib $(L2HARGS)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-01-05 11:49:39 -04:00
|
|
|
mac/mac.html: $(MACFILES) $(BUILDINDEX)
|
1998-11-30 16:28:35 -04:00
|
|
|
$(TOOLSDIR)/mkhowto.sh --address '<hr>Send comments to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.' --html $(TOPDIR)/mac/mac.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
1999-01-05 11:49:39 -04:00
|
|
|
ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
|
1998-08-12 14:06:03 -03:00
|
|
|
$(MKHTML) ref $(L2HARGS)
|
|
|
|
|
|
|
|
tut/tut.html: $(PAPERDIR)/tut.aux
|
|
|
|
$(MKHTML) tut $(L2HARGS)
|
|
|
|
|
|
|
|
|
1998-10-07 19:03:45 -03:00
|
|
|
include ../Makefile.deps
|
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
$(PAPERDIR)/api.aux: $(APIFILES)
|
1999-02-15 15:29:08 -04:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) api)
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
$(PAPERDIR)/ext.aux: $(EXTFILES)
|
1999-02-15 15:29:08 -04:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) ext)
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
$(PAPERDIR)/lib.aux: $(LIBFILES)
|
1999-02-15 15:29:08 -04:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) lib)
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
$(PAPERDIR)/ref.aux: $(REFFILES)
|
1999-02-15 15:29:08 -04:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) ref)
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
$(PAPERDIR)/tut.aux: $(TUTFILES)
|
1999-02-15 15:29:08 -04:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) tut)
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
|
1999-02-15 15:29:08 -04:00
|
|
|
webcheck: all
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/api/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ext/
|
|
|
|
$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/mac/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ref/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/tut/
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
clean:
|
1999-02-15 17:43:55 -04:00
|
|
|
rm -rf @webchecker.pickle
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -rf api/ ext/ lib/ mac/ ref/ tut/
|