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 \
|
|
|
|
tut/tut.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
|
|
|
|
1998-08-12 17:06:03 +00:00
|
|
|
.PHONY: api ext lib mac ref tut
|
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
|
1998-05-07 14:50:22 +00:00
|
|
|
|
1998-11-30 20:28:35 +00:00
|
|
|
$(INDEXFILES): $(COMMONPERL) $(TOPDIR)/html/about.dat
|
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
|
1998-08-12 17:06:03 +00:00
|
|
|
$(MKHTML) api $(L2HARGS)
|
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
|
1998-08-12 17:06:03 +00:00
|
|
|
$(MKHTML) ext $(L2HARGS)
|
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`
|
|
|
|
$(MKHTML) lib $(L2HARGS)
|
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
|
1998-08-12 17:06:03 +00:00
|
|
|
$(MKHTML) ref $(L2HARGS)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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/
|
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
|
|
|
|
rm -rf index.html modindex.html api/ doc/ ext/ lib/ mac/ ref/ tut/
|
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)
|
|
|
|
REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \
|
|
|
|
sed "s/@RELEASE@/$$REL/g" $< >TEMP
|
|
|
|
DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \
|
|
|
|
sed "s/@DATE@/$$DATE/g" TEMP >$@
|
|
|
|
rm -f TEMP
|
|
|
|
|