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 | |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 15 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame^] | 16 | ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex)) |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 17 | XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex)) |
| 18 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame^] | 19 | .SUFFIXES: .esis .tex .xml |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 20 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame^] | 21 | .tex.esis: |
| 22 | $(LATEX2ESIS) $< $@ |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 23 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame^] | 24 | .esis.xml: |
| 25 | $(DOCFIXER) $< | $(FIXGES) > $@ |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 26 | |
| 27 | all: $(XMLTARGETS) |
| 28 | |
| 29 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame^] | 30 | $(ESISTARGETS): $(LATEX2ESIS) |
| 31 | $(XMLTARGETS): $(DOCFIXER) $(FIXGES) |