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