mirror of https://github.com/python/cpython.git
Minor updates.
This commit is contained in:
parent
ada2de67b3
commit
2394c98c05
|
@ -7,11 +7,13 @@ DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
|
||||||
ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
||||||
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
||||||
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
||||||
|
CONVERSION= $(TOOLSDIR)/sgmlconv/conversion.xml
|
||||||
|
|
||||||
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
|
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
|
||||||
SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
|
SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
|
||||||
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
||||||
|
|
||||||
|
L2EFLAGS=
|
||||||
|
|
||||||
all: xml
|
all: xml
|
||||||
|
|
||||||
|
@ -21,7 +23,9 @@ xml: $(XMLTARGETS)
|
||||||
|
|
||||||
ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
|
ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
|
||||||
|
|
||||||
$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS) $(CONVERSION)
|
||||||
|
# This variant is easier to work with while debugging the conversion spec:
|
||||||
|
#$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
||||||
$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
|
$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
|
||||||
$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
|
$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
|
||||||
|
|
||||||
|
@ -29,15 +33,15 @@ $(XMLTARGETS): $(ESIS2ML) $(FIXGES)
|
||||||
.SUFFIXES: .esis .sgml .tex .xml
|
.SUFFIXES: .esis .sgml .tex .xml
|
||||||
|
|
||||||
.tex.esis:
|
.tex.esis:
|
||||||
$(LATEX2ESIS) $< temp.esis
|
$(LATEX2ESIS) $(L2EFLAGS) $< temp.esis
|
||||||
$(DOCFIXER) temp.esis $@
|
$(DOCFIXER) temp.esis $@
|
||||||
rm temp.esis
|
rm temp.esis
|
||||||
|
|
||||||
.esis.sgml:
|
.esis.sgml:
|
||||||
$(ESIS2ML) --sgml --autoclose para $< | $(FIXGES) > $@
|
$(ESIS2ML) --sgml --autoclose para $< | $(FIXGES) >$@
|
||||||
|
|
||||||
.esis.xml:
|
.esis.xml:
|
||||||
$(ESIS2ML) --xml $< | $(FIXGES) > $@
|
$(ESIS2ML) --xml $< | $(FIXGES) >$@
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue