1998-11-24 17:40:33 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
2000-11-22 16:54:20 +00:00
|
|
|
# Extra magic needed by the LaTeX->XML conversion process. This requires
|
1998-11-24 17:40:33 +00:00
|
|
|
# $(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))
|
2000-11-22 16:54:20 +00:00
|
|
|
ESIS1TARGETS= $(patsubst %.tex,%.esis1,$(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)
|
2000-11-22 16:54:20 +00:00
|
|
|
esis1: $(ESIS1TARGETS)
|
1998-12-01 19:05:56 +00:00
|
|
|
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)
|
2000-11-22 16:54:20 +00:00
|
|
|
$(ESIS1TARGETS): $(LATEX2ESIS) $(CONVERSION)
|
1999-07-29 22:14:09 +00:00
|
|
|
# This variant is easier to work with while debugging the conversion spec:
|
|
|
|
#$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
1999-08-26 17:57:18 +00:00
|
|
|
$(XMLTARGETS): $(ESIS2ML)
|
1998-11-24 17:40:33 +00:00
|
|
|
|
|
|
|
|
2000-11-22 16:54:20 +00:00
|
|
|
.SUFFIXES: .esis .esis1 .tex .xml
|
1998-12-01 19:05:56 +00:00
|
|
|
|
2000-11-22 16:54:20 +00:00
|
|
|
.tex.esis1:
|
|
|
|
$(LATEX2ESIS) $(L2EFLAGS) $< $@
|
1998-12-01 19:05:56 +00:00
|
|
|
|
2000-11-22 16:54:20 +00:00
|
|
|
.esis1.esis:
|
|
|
|
$(DOCFIXER) $< $@
|
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:
|
2000-11-22 16:54:20 +00:00
|
|
|
rm -f *.esis *.esis1
|
1999-01-14 18:26:23 +00:00
|
|
|
|
|
|
|
clobber: clean
|
2000-11-22 16:54:20 +00:00
|
|
|
rm -f *.xml
|