blob: 029fb415353a6c84b5ab333feb8674326ee8dccd [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.
Fred Draked8faf851998-11-24 17:40:33 +00005
6DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
Fred Drake3695b121998-12-01 19:05:56 +00007ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
Fred Draked8faf851998-11-24 17:40:33 +00008FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
9LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
10
Fred Drakef954b651998-11-30 22:31:45 +000011ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
Fred Drake3695b121998-12-01 19:05:56 +000012SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
Fred Draked8faf851998-11-24 17:40:33 +000013XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
14
Fred Drake3695b121998-12-01 19:05:56 +000015
16all: sgml
17
Fred Drake997eec71999-02-18 16:31:05 +000018esis: $(ESISTARGETS)
Fred Drake3695b121998-12-01 19:05:56 +000019sgml: $(SGMLTARGETS)
20xml: $(XMLTARGETS)
21
22ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
23
24$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
25$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
26$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
27
28
29.SUFFIXES: .esis .sgml .tex .xml
Fred Draked8faf851998-11-24 17:40:33 +000030
Fred Drakef954b651998-11-30 22:31:45 +000031.tex.esis:
Fred Drake3695b121998-12-01 19:05:56 +000032 $(LATEX2ESIS) $< | $(DOCFIXER) > $@
33
34.esis.sgml:
Fred Drake997eec71999-02-18 16:31:05 +000035 $(ESIS2ML) --sgml --autoclose para $< | $(FIXGES) > $@
Fred Draked8faf851998-11-24 17:40:33 +000036
Fred Drakef954b651998-11-30 22:31:45 +000037.esis.xml:
Fred Drake3695b121998-12-01 19:05:56 +000038 $(ESIS2ML) --xml $< | $(FIXGES) > $@
Fred Drakea50a1df1999-01-14 18:26:23 +000039
40
41clean:
42 rm -f *.esis
43
44clobber: clean
45 rm -f *.sgml *.xml