diff options
author | Fred Drake <fdrake@acm.org> | 1998-11-24 17:40:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-11-24 17:40:33 (GMT) |
commit | d8faf85d40a56a12ad110883789c243112105572 (patch) | |
tree | 23cc2d71096e35d5072525f026f1ec3df16b5cc5 /Doc | |
parent | 6942e57f87c5821b0f80aed3f7c1ddbe251e9a94 (diff) | |
download | cpython-d8faf85d40a56a12ad110883789c243112105572.zip cpython-d8faf85d40a56a12ad110883789c243112105572.tar.gz cpython-d8faf85d40a56a12ad110883789c243112105572.tar.bz2 |
Supplemental rules to convert a .tex file to a .xml file. Both XML and
SGML will be supported soon, probably using an ESIS representation saved
in a temp file.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tools/sgmlconv/make.rules | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Doc/tools/sgmlconv/make.rules b/Doc/tools/sgmlconv/make.rules new file mode 100644 index 0000000..0eef957 --- /dev/null +++ b/Doc/tools/sgmlconv/make.rules @@ -0,0 +1,29 @@ +# -*- 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 + +CUTCRUFT= grep -v '^<?xml version="1.0"?>$$' + + +XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex)) + +.SUFFIXES: .tex .xml + +.tex.xml: + $(LATEX2ESIS) $< | $(DOCFIXER) | $(CUTCRUFT) | $(FIXGES) > $@ + + +all: $(XMLTARGETS) + + +$(XMLTARGETS): $(DOCFIXER) $(LATEX2ESIS) $(FIXGES) |