1998-11-24 17:40:33 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# Extra magic needed by the LaTeX->SGML conversion process. This requires
|
|
|
|
# $(TOOLSDIR) to be properly defined.
|
|
|
|
|
|
|
|
DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
|
1998-12-01 19:05:56 +00:00
|
|
|
ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
1998-11-24 17:40:33 +00:00
|
|
|
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
1999-07-29 22:14:09 +00:00
|
|
|
CONVERSION= $(TOOLSDIR)/sgmlconv/conversion.xml
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1998-11-30 22:31:45 +00:00
|
|
|
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
|
1998-12-01 19:05:56 +00:00
|
|
|
SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
|
1998-11-24 17:40:33 +00:00
|
|
|
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
|
|
|
|
1999-07-29 22:14:09 +00:00
|
|
|
L2EFLAGS=
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1999-07-22 13:56:51 +00:00
|
|
|
all: xml
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1999-02-18 16:31:05 +00:00
|
|
|
esis: $(ESISTARGETS)
|
1998-12-01 19:05:56 +00:00
|
|
|
sgml: $(SGMLTARGETS)
|
|
|
|
xml: $(XMLTARGETS)
|
|
|
|
|
|
|
|
ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
|
1998-11-24 17:40:33 +00:00
|
|
|
|
1999-07-29 22:14:09 +00:00
|
|
|
$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS) $(CONVERSION)
|
|
|
|
# This variant is easier to work with while debugging the conversion spec:
|
|
|
|
#$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
1999-08-26 17:57:18 +00:00
|
|
|
$(SGMLTARGETS): $(ESIS2ML)
|
|
|
|
$(XMLTARGETS): $(ESIS2ML)
|
1998-11-24 17:40:33 +00:00
|
|
|
|
|
|
|
|
1998-12-01 19:05:56 +00:00
|
|
|
.SUFFIXES: .esis .sgml .tex .xml
|
|
|
|
|
|
|
|
.tex.esis:
|
1999-07-29 22:14:09 +00:00
|
|
|
$(LATEX2ESIS) $(L2EFLAGS) $< temp.esis
|
1999-07-22 13:56:51 +00:00
|
|
|
$(DOCFIXER) temp.esis $@
|
|
|
|
rm temp.esis
|
1998-12-01 19:05:56 +00:00
|
|
|
|
|
|
|
.esis.sgml:
|
1999-08-26 17:57:18 +00:00
|
|
|
$(ESIS2ML) --sgml --autoclose para $< $@
|
1998-12-01 19:05:56 +00:00
|
|
|
|
|
|
|
.esis.xml:
|
1999-08-26 17:57:18 +00:00
|
|
|
$(ESIS2ML) --xml $< $@
|
1999-01-14 18:26:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.esis
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -f *.sgml *.xml
|