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