1998-05-07 14:50:22 +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.
|
|
|
|
#
|
|
|
|
# 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 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
|
1999-04-29 19:04:55 +00:00
|
|
|
WCNEW=$(PYTHON) $(TOPDIR)/../Tools/webchecker/wcnew.py
|
1999-02-15 19:29:08 +00:00
|
|
|
MKAUX= PAPER=$(PAPER) TEXINPUTS=$(TEXINPUTS) $(TOOLSDIR)/mkdvi.sh --aux
|
|
|
|
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
|
|
|
|
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
|
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
|
|
|
|
1999-02-12 21:42:23 +00:00
|
|
|
# make it clear to l2h, since our support only generates HTML 4.0
|
1999-02-15 19:29:08 +00:00
|
|
|
L2HARGS= -html_version 4.0
|
|
|
|
|
1999-10-29 20:51:43 +00:00
|
|
|
PYTHONDOCS='<hr>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
|
|
|
|
|
|
|
|
1999-04-29 15:42:19 +00:00
|
|
|
all: $(INDEXFILES) index.html modindex.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
|
|
|
|
1999-04-29 17:04:21 +00:00
|
|
|
# The index.html target is at the end since it screws up font-lock.
|
|
|
|
|
1999-02-24 17:34:12 +00:00
|
|
|
modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex
|
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
|
|
|
|
|
1999-04-29 18:29:38 +00:00
|
|
|
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
2000-07-31 15:55:22 +00:00
|
|
|
$(MKHTML) api $(L2HARGS) -split 5
|
1998-05-15 17:02:10 +00:00
|
|
|
|
1999-03-18 19:07:04 +00:00
|
|
|
doc/doc.html: $(DOCFILES) $(BUILDINDEX) $(TOPDIR)/perl/ltxmarkup.perl
|
1999-09-23 16:54:06 +00:00
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/doc/doc.tex
|
1999-03-18 19:07:04 +00:00
|
|
|
|
1999-04-29 18:29:38 +00:00
|
|
|
ext/ext.html: $(PAPERDIR)/ext.aux $(TOOLSDIR)/mkhtml.sh
|
2000-07-31 15:55:22 +00:00
|
|
|
$(MKHTML) ext $(L2HARGS) -split 5
|
1998-05-07 14:50:22 +00:00
|
|
|
|
1999-04-29 18:29:38 +00:00
|
|
|
lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
1998-08-12 17:06:03 +00:00
|
|
|
$(TOOLSDIR)/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
|
|
|
|
mv lib1.aux `$(KPSEWHICH) lib.aux`
|
2000-07-31 15:55:22 +00:00
|
|
|
$(MKHTML) lib $(L2HARGS) -split 5
|
1998-05-07 14:50:22 +00:00
|
|
|
|
1999-01-05 15:49:39 +00:00
|
|
|
mac/mac.html: $(MACFILES) $(BUILDINDEX)
|
1999-09-23 16:54:06 +00:00
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/mac/mac.tex
|
1998-08-12 17:06:03 +00:00
|
|
|
|
1999-04-29 18:29:38 +00:00
|
|
|
ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
2000-07-31 15:55:22 +00:00
|
|
|
$(MKHTML) ref $(L2HARGS) -split 5
|
1998-08-12 17:06:03 +00:00
|
|
|
|
1999-04-29 18:29:38 +00:00
|
|
|
tut/tut.html: $(PAPERDIR)/tut.aux $(TOOLSDIR)/mkhtml.sh
|
|
|
|
$(MKHTML) --numeric tut $(L2HARGS) -split 3
|
1998-08-12 17:06:03 +00:00
|
|
|
|
2000-04-28 17:03:26 +00:00
|
|
|
inst/inst.html:$(INSTFILES) $(TOPDIR)/perl/distutils.perl
|
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/inst/inst.tex
|
|
|
|
|
|
|
|
dist/dist.html:$(DISTFILES) $(TOPDIR)/perl/distutils.perl
|
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/dist/dist.tex
|
1998-08-12 17:06:03 +00:00
|
|
|
|
1998-10-07 22:03:45 +00:00
|
|
|
include ../Makefile.deps
|
|
|
|
|
1998-08-12 17:06:03 +00:00
|
|
|
$(PAPERDIR)/api.aux: $(APIFILES)
|
1999-02-15 19:29:08 +00:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) api)
|
1998-08-12 17:06:03 +00:00
|
|
|
|
|
|
|
$(PAPERDIR)/ext.aux: $(EXTFILES)
|
1999-02-15 19:29:08 +00:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) ext)
|
1998-08-12 17:06:03 +00:00
|
|
|
|
|
|
|
$(PAPERDIR)/lib.aux: $(LIBFILES)
|
1999-02-15 19:29:08 +00:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) lib)
|
1998-08-12 17:06:03 +00:00
|
|
|
|
|
|
|
$(PAPERDIR)/ref.aux: $(REFFILES)
|
1999-02-15 19:29:08 +00:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) ref)
|
1998-08-12 17:06:03 +00:00
|
|
|
|
|
|
|
$(PAPERDIR)/tut.aux: $(TUTFILES)
|
1999-02-15 19:29:08 +00:00
|
|
|
(cd $(PAPERDIR); $(MKAUX) tut)
|
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
|
|
|
|
1999-04-29 19:04:55 +00:00
|
|
|
wcnew: all
|
|
|
|
$(WCNEW) $(HTMLBASE)/api/
|
|
|
|
$(WCNEW) $(HTMLBASE)/doc/
|
|
|
|
$(WCNEW) $(HTMLBASE)/ext/
|
|
|
|
$(WCNEW) -m290000 $(HTMLBASE)/lib/
|
|
|
|
$(WCNEW) $(HTMLBASE)/mac/
|
|
|
|
$(WCNEW) $(HTMLBASE)/ref/
|
|
|
|
$(WCNEW) $(HTMLBASE)/tut/
|
|
|
|
|
|
|
|
|
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-04-28 17:03:26 +00:00
|
|
|
rm -rf index.html modindex.html
|
|
|
|
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
|
|
|
|
index.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
|
|
|
|
|