1998-11-24 17:40:33 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# Extra magic needed by the LaTeX->SGML conversion process. This requires
|
|
|
|
# $(TOOLSDIR) to be properly defined.
|
|
|
|
#
|
|
|
|
# Note that docfixer.py outputs XML directly; this will be fixed before too
|
|
|
|
# much longer.
|
|
|
|
|
|
|
|
DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
|
|
|
|
ESIS2SGML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
|
|
|
ESIS2XML= $(TOOLSDIR)/sgmlconv/esis2sgml.py --xml
|
|
|
|
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
|
|
|
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
|
|
|
|
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
|
1998-11-24 17:40:33 +00:00
|
|
|
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
.SUFFIXES: .esis .tex .xml
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
.tex.esis:
|
|
|
|
$(LATEX2ESIS) $< $@
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
.esis.xml:
|
|
|
|
$(DOCFIXER) $< | $(FIXGES) > $@
|
1998-11-24 17:40:33 +00:00
|
|
|
|
|
|
|
all: $(XMLTARGETS)
|
|
|
|
|
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
$(ESISTARGETS): $(LATEX2ESIS)
|
|
|
|
$(XMLTARGETS): $(DOCFIXER) $(FIXGES)
|