Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame^] | 1 | # -*- makefile -*- |
| 2 | # |
| 3 | # Extra magic needed by the LaTeX->SGML conversion process. This requires |
| 4 | # $(TOOLSDIR) to be properly defined. |
| 5 | # |
| 6 | # Note that docfixer.py outputs XML directly; this will be fixed before too |
| 7 | # much longer. |
| 8 | |
| 9 | DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py |
| 10 | ESIS2SGML= $(TOOLSDIR)/sgmlconv/esis2sgml.py |
| 11 | ESIS2XML= $(TOOLSDIR)/sgmlconv/esis2sgml.py --xml |
| 12 | FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh |
| 13 | LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py |
| 14 | |
| 15 | CUTCRUFT= grep -v '^<?xml version="1.0"?>$$' |
| 16 | |
| 17 | |
| 18 | XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex)) |
| 19 | |
| 20 | .SUFFIXES: .tex .xml |
| 21 | |
| 22 | .tex.xml: |
| 23 | $(LATEX2ESIS) $< | $(DOCFIXER) | $(CUTCRUFT) | $(FIXGES) > $@ |
| 24 | |
| 25 | |
| 26 | all: $(XMLTARGETS) |
| 27 | |
| 28 | |
| 29 | $(XMLTARGETS): $(DOCFIXER) $(LATEX2ESIS) $(FIXGES) |