summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-12-01 19:05:56 (GMT)
committerFred Drake <fdrake@acm.org>1998-12-01 19:05:56 (GMT)
commit3695b1212cd51b4a4067448f894e820dc2536ba8 (patch)
tree4a8ff43e191ebdfd89b577d9415e54c83fe5da68 /Doc
parentaeea9810cd392597b815ee6e9f15b95ca702c1f2 (diff)
downloadcpython-3695b1212cd51b4a4067448f894e820dc2536ba8.zip
cpython-3695b1212cd51b4a4067448f894e820dc2536ba8.tar.gz
cpython-3695b1212cd51b4a4067448f894e820dc2536ba8.tar.bz2
Support conversions to both SGML and XML; SGML is the "default".
Add dependency on esistools.py for the ESIS intermediate files.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tools/sgmlconv/make.rules34
1 files changed, 20 insertions, 14 deletions
diff --git a/Doc/tools/sgmlconv/make.rules b/Doc/tools/sgmlconv/make.rules
index b9b31f7..1768254 100644
--- a/Doc/tools/sgmlconv/make.rules
+++ b/Doc/tools/sgmlconv/make.rules
@@ -2,30 +2,36 @@
#
# 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
+ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
-
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
+SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
-.SUFFIXES: .esis .tex .xml
-.tex.esis:
- $(LATEX2ESIS) $< $@
+all: sgml
-.esis.xml:
- $(DOCFIXER) $< | $(FIXGES) > $@
+sgml: $(SGMLTARGETS)
+xml: $(XMLTARGETS)
+
+ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
-all: $(XMLTARGETS)
+$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
+$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
+$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
-$(ESISTARGETS): $(LATEX2ESIS)
-$(XMLTARGETS): $(DOCFIXER) $(FIXGES)
+.SUFFIXES: .esis .sgml .tex .xml
+
+.tex.esis:
+ $(LATEX2ESIS) $< | $(DOCFIXER) > $@
+
+.esis.sgml:
+ $(ESIS2ML) $< | $(FIXGES) > $@
+
+.esis.xml:
+ $(ESIS2ML) --xml $< | $(FIXGES) > $@