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
|
1999-04-29 16:04:55 -03:00
|
|
|
WCNEW=$(PYTHON) $(TOPDIR)/../Tools/webchecker/wcnew.py
|
1999-02-15 15:29:08 -04:00
|
|
|
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
|
|
|
|
|
1999-10-29 17:51:43 -03:00
|
|
|
PYTHONDOCS='<hr>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
|
|
|
|
|
|
|
|
1999-04-29 12:42:19 -03:00
|
|
|
all: $(INDEXFILES) index.html modindex.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
|
|
|
|
1999-04-29 14:04:21 -03:00
|
|
|
# The index.html target is at the end since it screws up font-lock.
|
|
|
|
|
1999-02-24 13:34:12 -04:00
|
|
|
modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex
|
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
|
|
|
|
|
1999-04-29 15:29:38 -03:00
|
|
|
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
1998-08-12 14:06:03 -03:00
|
|
|
$(MKHTML) api $(L2HARGS)
|
1998-05-15 14:02:10 -03:00
|
|
|
|
1999-03-18 15:07:04 -04:00
|
|
|
doc/doc.html: $(DOCFILES) $(BUILDINDEX) $(TOPDIR)/perl/ltxmarkup.perl
|
1999-09-23 13:54:06 -03:00
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/doc/doc.tex
|
1999-03-18 15:07:04 -04:00
|
|
|
|
1999-04-29 15:29:38 -03:00
|
|
|
ext/ext.html: $(PAPERDIR)/ext.aux $(TOOLSDIR)/mkhtml.sh
|
1998-08-12 14:06:03 -03:00
|
|
|
$(MKHTML) ext $(L2HARGS)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1999-04-29 15:29:38 -03:00
|
|
|
lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
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)
|
1999-09-23 13:54:06 -03:00
|
|
|
$(TOOLSDIR)/mkhowto --about stdabout.dat --address $(PYTHONDOCS) \
|
|
|
|
--html $(TOPDIR)/mac/mac.tex
|
1998-08-12 14:06:03 -03:00
|
|
|
|
1999-04-29 15:29:38 -03:00
|
|
|
ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX) $(TOOLSDIR)/mkhtml.sh
|
1998-08-12 14:06:03 -03:00
|
|
|
$(MKHTML) ref $(L2HARGS)
|
|
|
|
|
1999-04-29 15:29:38 -03:00
|
|
|
tut/tut.html: $(PAPERDIR)/tut.aux $(TOOLSDIR)/mkhtml.sh
|
|
|
|
$(MKHTML) --numeric tut $(L2HARGS) -split 3
|
1998-08-12 14:06:03 -03:00
|
|
|
|
2000-04-28 14:03:26 -03: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 14:06:03 -03:00
|
|
|
|
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/
|
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
|
|
|
|
1999-04-29 16:04:55 -03: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 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-04-28 14:03:26 -03:00
|
|
|
rm -rf index.html modindex.html
|
|
|
|
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
|
|
|
|
index.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
|
|
|
|
|