blob: 491784ed129e0cd3cd9927a2a56602a6a1fa9ba9 [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
Fred Drake7dbde511999-07-22 13:56:51 +000016all: xml
Fred Drake3695b121998-12-01 19:05:56 +000017
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 Drake7dbde511999-07-22 13:56:51 +000032 $(LATEX2ESIS) $< temp.esis
33 $(DOCFIXER) temp.esis $@
34 rm temp.esis
Fred Drake3695b121998-12-01 19:05:56 +000035
36.esis.sgml:
Fred Drake997eec71999-02-18 16:31:05 +000037 $(ESIS2ML) --sgml --autoclose para $< | $(FIXGES) > $@
Fred Draked8faf851998-11-24 17:40:33 +000038
Fred Drakef954b651998-11-30 22:31:45 +000039.esis.xml:
Fred Drake3695b121998-12-01 19:05:56 +000040 $(ESIS2ML) --xml $< | $(FIXGES) > $@
Fred Drakea50a1df1999-01-14 18:26:23 +000041
42
43clean:
44 rm -f *.esis
45
46clobber: clean
47 rm -f *.sgml *.xml