blob: b9b31f71868cf1b363d02aaad7bf00c932dd747b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# -*- makefile -*-
#
# 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
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
.SUFFIXES: .esis .tex .xml
.tex.esis:
$(LATEX2ESIS) $< $@
.esis.xml:
$(DOCFIXER) $< | $(FIXGES) > $@
all: $(XMLTARGETS)
$(ESISTARGETS): $(LATEX2ESIS)
$(XMLTARGETS): $(DOCFIXER) $(FIXGES)
|