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?
|
|
|
|
PYTHON= python
|
|
|
|
WEBCHECKER= $(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
|
|
|
|
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
|
|
|
|
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
|
1998-08-11 16:36:35 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
INDEXFILES=api/api.html \
|
|
|
|
ext/ext.html \
|
|
|
|
lib/lib.html \
|
|
|
|
mac/mac.html \
|
|
|
|
ref/ref.html \
|
|
|
|
tut/tut.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
|
|
|
|
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
all: icons $(INDEXFILES)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
.PHONY: api ext lib mac ref tut
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
api: icons api/api.html
|
|
|
|
ext: icons ext/ext.html
|
|
|
|
lib: icons lib/lib.html
|
|
|
|
mac: icons mac/mac.html
|
|
|
|
ref: icons ref/ref.html
|
|
|
|
tut: icons tut/tut.html
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
$(INDEXFILES): $(COMMONPERL)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
api/api.html: $(PAPERDIR)/api.aux
|
|
|
|
$(MKHTML) api $(L2HARGS)
|
1998-05-15 14:02:10 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
ext/ext.html: $(PAPERDIR)/ext.aux
|
|
|
|
$(MKHTML) ext $(L2HARGS)
|
1998-05-07 11:50:22 -03:00
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
lib/lib.html: $(PAPERDIR)/lib.aux
|
|
|
|
$(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
|
|
|
|
1998-08-12 14:06:03 -03:00
|
|
|
mac/mac.html: $(MACFILES)
|
|
|
|
$(TOOLSDIR)/mkhowto.sh --html $(TOPDIR)/mac/mac.tex
|
|
|
|
|
|
|
|
ref/ref.html: $(PAPERDIR)/ref.aux
|
|
|
|
$(MKHTML) ref $(L2HARGS)
|
|
|
|
|
|
|
|
tut/tut.html: $(PAPERDIR)/tut.aux
|
|
|
|
$(MKHTML) tut $(L2HARGS)
|
|
|
|
|
|
|
|
|
|
|
|
$(PAPERDIR)/api.aux: $(APIFILES)
|
|
|
|
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
|
|
|
|
|
|
|
|
$(PAPERDIR)/ext.aux: $(EXTFILES)
|
|
|
|
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
|
|
|
|
|
|
|
|
$(PAPERDIR)/lib.aux: $(LIBFILES)
|
|
|
|
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
|
|
|
|
|
|
|
|
$(PAPERDIR)/ref.aux: $(REFFILES)
|
|
|
|
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
|
|
|
|
|
|
|
|
$(PAPERDIR)/tut.aux: $(TUTFILES)
|
|
|
|
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
|
|
|
|
|
|
|
|
# copy the icons/ directory over...
|
1998-05-07 11:50:22 -03:00
|
|
|
icons:
|
1998-08-12 14:06:03 -03:00
|
|
|
mkdir icons/
|
1998-08-11 16:36:35 -03:00
|
|
|
cp $(TOPDIR)/icons/*.gif icons/
|
1998-08-12 14:06:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
webcheck:
|
|
|
|
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/
|
|
|
|
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/
|
|
|
|
$(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/
|
|
|
|
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/
|
|
|
|
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/
|
|
|
|
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf icons/ @webchecker.pickle
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -rf api/ ext/ lib/ mac/ ref/ tut/
|