blob: 0eef9579a7eb9414d45c6f4eb1d716bd8e23551d [file] [log] [blame]
Fred Draked8faf851998-11-24 17:40:33 +00001# -*- 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
9DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
10ESIS2SGML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
11ESIS2XML= $(TOOLSDIR)/sgmlconv/esis2sgml.py --xml
12FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
13LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
14
15CUTCRUFT= grep -v '^<?xml version="1.0"?>$$'
16
17
18XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
19
20.SUFFIXES: .tex .xml
21
22.tex.xml:
23 $(LATEX2ESIS) $< | $(DOCFIXER) | $(CUTCRUFT) | $(FIXGES) > $@
24
25
26all: $(XMLTARGETS)
27
28
29$(XMLTARGETS): $(DOCFIXER) $(LATEX2ESIS) $(FIXGES)