2000-08-31 03:12:35 -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.
|
1998-05-07 11:50:22 -03:00
|
|
|
|
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
|
2000-08-31 04:00:17 -03:00
|
|
|
MKHOWTO= $(TOOLSDIR)/mkhowto --about $(TOPDIR)/html/stdabout.dat \
|
2000-09-12 16:53:18 -03:00
|
|
|
--address $(PYTHONDOCS) --up-link ../index.html \
|
2001-01-09 18:02:10 -04:00
|
|
|
--up-title "Python Documentation Index" \
|
|
|
|
--global-module-index "../modindex.html"
|
2000-08-31 04:00:17 -03:00
|
|
|
MKHTML= $(MKHOWTO) --html
|
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
|
|
|
|
2000-10-25 13:12:04 -03:00
|
|
|
PYTHONDOCS='See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.'
|
1999-02-15 15:29:08 -04:00
|
|
|
HTMLBASE= file:`pwd`
|
1999-02-12 17:42:23 -04:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
INDEXFILES=api/api.html \
|
1999-03-18 15:07:04 -04:00
|
|
|
doc/doc.html \
|
1998-08-12 14:06:03 -03:00
|
|
|
ext/ext.html \
|
|
|
|
lib/lib.html \
|
|
|
|
mac/mac.html \
|
|
|
|
ref/ref.html \
|
2000-04-28 14:03:26 -03:00
|
|
|
tut/tut.html \
|
|
|
|
inst/inst.html \
|
|
|
|
dist/dist.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
|
|
|
|
|
|
|
|
2000-10-09 15:56:23 -03:00
|
|
|
all: $(INDEXFILES) index.html modindex.html acks.html
|
1998-05-07 11:50:22 -03:00
|
|
|
|
2000-04-28 14:03:26 -03:00
|
|
|
.PHONY: api ext lib mac ref tut inst dist
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-02-15 17:43:55 -04:00
|
|
|
api: api/api.html
|
1999-04-05 16:28:29 -03:00
|
|
|
doc: doc/doc.html
|
1999-02-15 17:43:55 -04:00
|
|
|
ext: ext/ext.html
|
|
|
|
lib: lib/lib.html
|
|
|
|
mac: mac/mac.html
|
|
|
|
ref: ref/ref.html
|
|
|
|
tut: tut/tut.html
|
2000-04-28 14:03:26 -03:00
|
|
|
inst: inst/inst.html
|
|
|
|
dist: dist/dist.html
|
1998-05-07 11:50:22 -03:00
|
|
|
|
2000-04-03 01:51:13 -03:00
|
|
|
$(INDEXFILES): $(COMMONPERL) \
|
|
|
|
$(TOPDIR)/html/about.dat \
|
|
|
|
$(TOPDIR)/tools/node2label.pl
|
1998-05-07 11:50:22 -03:00
|
|
|
|
2000-08-11 14:36:21 -03:00
|
|
|
include ../Makefile.deps
|
|
|
|
|
1999-04-29 14:04:21 -03:00
|
|
|
# The index.html target is at the end since it screws up font-lock.
|
|
|
|
|
2000-10-05 02:16:56 -03:00
|
|
|
acks.html: ../ACKS $(TOOLSDIR)/support.py $(TOOLSDIR)/mkackshtml
|
|
|
|
$(TOOLSDIR)/mkackshtml --address $(PYTHONDOCS) --output acks.html \
|
|
|
|
<../ACKS
|
|
|
|
|
|
|
|
modindex.html: $(TOOLSDIR)/support.py $(TOOLSDIR)/mkmodindex
|
|
|
|
modindex.html: lib/lib.html mac/mac.html
|
1999-03-02 11:56:19 -04:00
|
|
|
$(TOOLSDIR)/mkmodindex --columns 4 --output modindex.html \
|
1999-03-04 17:25:05 -04:00
|
|
|
--address $(PYTHONDOCS) \
|
1999-02-24 13:34:12 -04:00
|
|
|
lib/modindex.html mac/modindex.html
|
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
api/api.html: $(APIFILES) $(BUILDINDEX)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/api/api.tex
|
1998-05-15 14:02:10 -03:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
doc/doc.html: $(DOCFILES) $(BUILDINDEX)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/doc/doc.tex
|
1999-03-18 15:07:04 -04:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
ext/ext.html: $(EXTFILES)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/ext/ext.tex
|
1998-05-07 11:50:22 -03:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
lib/lib.html: $(LIBFILES) $(BUILDINDEX)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/lib/lib.tex
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-01-05 11:49:39 -04:00
|
|
|
mac/mac.html: $(MACFILES) $(BUILDINDEX)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/mac/mac.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
ref/ref.html: $(REFFILES) $(BUILDINDEX)
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/ref/ref.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
tut/tut.html: $(TUTFILES) $(TOOLSDIR)/mkhowto
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) --numeric --split 3 $(TOPDIR)/tut/tut.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
2000-08-31 03:12:35 -03:00
|
|
|
inst/inst.html: $(INSTFILES) $(TOPDIR)/perl/distutils.perl
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/inst/inst.tex
|
2000-04-28 14:03:26 -03:00
|
|
|
|
|
|
|
dist/dist.html:$(DISTFILES) $(TOPDIR)/perl/distutils.perl
|
2000-08-31 04:00:17 -03:00
|
|
|
$(MKHTML) $(TOPDIR)/dist/dist.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
1999-02-15 15:29:08 -04:00
|
|
|
webcheck: all
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/api/
|
1999-03-18 15:07:04 -04:00
|
|
|
$(WEBCHECKER) $(HTMLBASE)/doc/
|
1999-02-15 15:29:08 -04:00
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ext/
|
|
|
|
$(WEBCHECKER) -m290000 $(HTMLBASE)/lib/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/mac/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/ref/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/tut/
|
2000-04-28 14:03:26 -03:00
|
|
|
$(WEBCHECKER) $(HTMLBASE)/dist/
|
|
|
|
$(WEBCHECKER) $(HTMLBASE)/inst/
|
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
|
|
|
|
1999-09-24 10:51:19 -03:00
|
|
|
distclean realclean clobber: clean
|
2000-10-05 02:16:56 -03:00
|
|
|
rm -rf index.html modindex.html acks.html
|
2000-04-28 14:03:26 -03:00
|
|
|
rm -rf api/ doc/ ext/ lib/ mac/ ref/ tut/ inst/ dist/
|
1999-04-29 14:04:21 -03:00
|
|
|
|
|
|
|
|
|
|
|
# This is really ugly, but we're not dependent on $(RELEASE), which isn't
|
|
|
|
# defined here. It also maintains the proper dependency on boilerplate.tex.
|
|
|
|
|
|
|
|
# It's at the end of the file since it wedges font-lock in XEmacs.
|
|
|
|
|
|
|
|
BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex
|
2000-08-31 03:12:35 -03:00
|
|
|
index.html: $(TOPDIR)/html/index.html.in $(BOILERPLATE)
|
1999-11-18 16:56:29 -04:00
|
|
|
REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'`; \
|
|
|
|
REL=`echo "$$REL" | sed 's/[$$]//g'`; \
|
1999-04-29 14:04:21 -03:00
|
|
|
sed "s/@RELEASE@/$$REL/g" $< >TEMP
|
|
|
|
DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \
|
1999-11-18 16:56:29 -04:00
|
|
|
if [ "$$DATE" = '\today' ] ; then DATE=`date '+%B %e, %Y'`;fi;\
|
1999-04-29 14:04:21 -03:00
|
|
|
sed "s/@DATE@/$$DATE/g" TEMP >$@
|
|
|
|
rm -f TEMP
|