Minor updates.
[ir-tcl-moved-to-github.git] / doc / Makefile
index 1457cd1..842093e 100644 (file)
@@ -1,22 +1,29 @@
-# $Id: Makefile,v 1.2 1995-05-31 08:37:01 adam Exp $
-all: -tcl.ps ir-tcl.txt
+# $Id: Makefile,v 1.7 1999-02-11 10:57:20 adam Exp $
+all: ir-tcl.ps ir-tcl.txt ir-tcl.html
 
 ir-tcl.txt: ir-tcl.sgml
-       sgml-format -T nroff ir-tcl| qroff >ir-tcl.txt
-
-ir-tcl.dvi: ir-tcl.sgml
-       sgml-format ir-tcl| qtex -d >ir-tcl.dvi
+       sgml2txt ir-tcl.sgml
 
 ir-tcl.ps: ir-tcl.sgml
-       sgml-format ir-tcl| qtex -x
-       mv out.ps ir-tcl.ps
+       sgml2latex --output=ps ir-tcl
+
+ir-tcl.dvi: ir-tcl.tex
+       sgml2latex --output=dvi ir-tcl
+
+ir-tcl.tex: ir-tcl.sgml
+       sgml2latex --output=tex ir-tcl
 
 ir-tcl.html: ir-tcl.sgml
-       sgml-format -T html ir-tcl | prehtml | fixref >tmp.html
-       sgml-format -T html ir-tcl | prehtml >>tmp.html
-       html2html ir-tcl <tmp.html >ir-tcl.html
-       rm tmp.html
+       sgml2html ir-tcl
+
+ir-tcl.shtml: ir-tcl.html
+       for f in ir-tcl*.html; do \
+               out=`echo $$f | sed -e 's/.html/.shtml/'`; \
+               sed -e 's@\(ir-tcl.*\).html@\1.shtml@' $$f | \
+               sed -e 's@^<BODY>@<!--#include virtual="top.shtml"-->@' | \
+               sed -e 's@^</BODY>@<!--#include virtual="bottom.shtml"-->@' >$$out; \
+       done
 
 clean:
-       rm -f [0-9]* *.bak
+       rm -f [0-9]* *.bak *.aux *.tex *.ps *.dvi *.html *.shtml