1998-11-24 13:40:33 -04: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 15:05:56 -04:00
|
|
|
ESIS2ML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
1998-11-24 13:40:33 -04:00
|
|
|
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
|
|
|
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
|
|
|
|
1998-11-30 18:31:45 -04:00
|
|
|
ESISTARGETS= $(patsubst %.tex,%.esis,$(wildcard *.tex))
|
1998-12-01 15:05:56 -04:00
|
|
|
SGMLTARGETS= $(patsubst %.tex,%.sgml,$(wildcard *.tex))
|
1998-11-24 13:40:33 -04:00
|
|
|
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
|
|
|
|
|
|
|
|
1998-12-01 15:05:56 -04:00
|
|
|
all: sgml
|
1998-11-24 13:40:33 -04:00
|
|
|
|
1999-02-18 12:31:05 -04:00
|
|
|
esis: $(ESISTARGETS)
|
1998-12-01 15:05:56 -04:00
|
|
|
sgml: $(SGMLTARGETS)
|
|
|
|
xml: $(XMLTARGETS)
|
|
|
|
|
|
|
|
ESISTOOLS= $(TOOLSDIR)/sgmlconv/esistools.py
|
1998-11-24 13:40:33 -04:00
|
|
|
|
1998-12-01 15:05:56 -04:00
|
|
|
$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
|
|
|
$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
|
|
|
|
$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
|
1998-11-24 13:40:33 -04:00
|
|
|
|
|
|
|
|
1998-12-01 15:05:56 -04:00
|
|
|
.SUFFIXES: .esis .sgml .tex .xml
|
|
|
|
|
|
|
|
.tex.esis:
|
|
|
|
$(LATEX2ESIS) $< | $(DOCFIXER) > $@
|
|
|
|
|
|
|
|
.esis.sgml:
|
1999-02-18 12:31:05 -04:00
|
|
|
$(ESIS2ML) --sgml --autoclose para $< | $(FIXGES) > $@
|
1998-12-01 15:05:56 -04:00
|
|
|
|
|
|
|
.esis.xml:
|
|
|
|
$(ESIS2ML) --xml $< | $(FIXGES) > $@
|
1999-01-14 14:26:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.esis
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -f *.sgml *.xml
|