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
|
|
|
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
|
|
|
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
|
|
|
|
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))
|
|
|
|
|
|
|
|
|
1998-12-01 19:05:56 +00:00
|
|
|
all: sgml
|
1998-11-24 17:40:33 +00:00
|
|
|
|
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
|
|
|
|
1998-12-01 19:05:56 +00:00
|
|
|
$(ESISTARGETS): $(LATEX2ESIS) $(DOCFIXER) $(ESISTOOLS)
|
|
|
|
$(SGMLTARGETS): $(ESIS2ML) $(FIXGES)
|
|
|
|
$(XMLTARGETS): $(ESIS2ML) $(FIXGES)
|
1998-11-24 17:40:33 +00:00
|
|
|
|
|
|
|
|
1998-12-01 19:05:56 +00:00
|
|
|
.SUFFIXES: .esis .sgml .tex .xml
|
|
|
|
|
|
|
|
.tex.esis:
|
|
|
|
$(LATEX2ESIS) $< | $(DOCFIXER) > $@
|
|
|
|
|
|
|
|
.esis.sgml:
|
|
|
|
$(ESIS2ML) $< | $(FIXGES) > $@
|
|
|
|
|
|
|
|
.esis.xml:
|
|
|
|
$(ESIS2ML) --xml $< | $(FIXGES) > $@
|
1999-01-14 18:26:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.esis
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
rm -f *.sgml *.xml
|