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. |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 5 | |
| 6 | DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py |
Fred Drake | 3695b12 | 1998-12-01 19:05:56 +0000 | [diff] [blame^] | 7 | ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 8 | FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh |
| 9 | LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py |
| 10 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame] | 11 | ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex)) |
Fred Drake | 3695b12 | 1998-12-01 19:05:56 +0000 | [diff] [blame^] | 12 | SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex)) |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 13 | XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex)) |
| 14 | |
Fred Drake | 3695b12 | 1998-12-01 19:05:56 +0000 | [diff] [blame^] | 15 | |
| 16 | all: sgml |
| 17 | |
| 18 | sgml: $(SGMLTARGETS) |
| 19 | xml: $(XMLTARGETS) |
| 20 | |
| 21 | ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py |
| 22 | |
| 23 | $(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS) |
| 24 | $(SGMLTARGETS): $(ESIS2ML) $(FIXGES) |
| 25 | $(XMLTARGETS): $(ESIS2ML) $(FIXGES) |
| 26 | |
| 27 | |
| 28 | .SUFFIXES: .esis .sgml .tex .xml |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 29 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame] | 30 | .tex.esis: |
Fred Drake | 3695b12 | 1998-12-01 19:05:56 +0000 | [diff] [blame^] | 31 | $(LATEX2ESIS) $< | $(DOCFIXER) > $@ |
| 32 | |
| 33 | .esis.sgml: |
| 34 | $(ESIS2ML) $< | $(FIXGES) > $@ |
Fred Drake | d8faf85 | 1998-11-24 17:40:33 +0000 | [diff] [blame] | 35 | |
Fred Drake | f954b65 | 1998-11-30 22:31:45 +0000 | [diff] [blame] | 36 | .esis.xml: |
Fred Drake | 3695b12 | 1998-12-01 19:05:56 +0000 | [diff] [blame^] | 37 | $(ESIS2ML) --xml $< | $(FIXGES) > $@ |