summaryrefslogtreecommitdiff
path: root/dviware/dvi2bitmap/doc/xml2html/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvi2bitmap/doc/xml2html/Makefile')
-rw-r--r--dviware/dvi2bitmap/doc/xml2html/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/dviware/dvi2bitmap/doc/xml2html/Makefile b/dviware/dvi2bitmap/doc/xml2html/Makefile
new file mode 100644
index 0000000000..9507f07b5d
--- /dev/null
+++ b/dviware/dvi2bitmap/doc/xml2html/Makefile
@@ -0,0 +1,20 @@
+# Include this Makefile to include the following rules.
+# Before inclusion, set the XML2HTML variable to be the path to this directory.
+#XML2HTML=.
+
+%.xhtml: %.xml
+ rm -f $@ $@.tmp
+ $(XSLTPROC) --stringparam document-id $$PWD/$< $(XML2HTML)/structure.xslt $< >$@.tmp && mv $@.tmp $@
+%.html: %.xhtml
+ rm -f $@ $@.tmp
+ $(XSLTPROC) $(XML2HTML)/identity-html.xslt $< >$@.tmp && mv $@.tmp $@
+%.aux: %.xml
+ rm -f $@ $(@:=.tmp)
+ $(XSLTPROC) --stringparam document-id $$PWD/$< \
+ --stringparam target aux \
+ $(XML2HTML)/structure.xslt $< >$@.tmp && mv $@.tmp $@
+ printf '\\bibstyle{unsrthtml}\n' >>$@
+%.bbl: %.aux
+ BSTINPUTS=$(STYLE) bibtex $<
+ sed -f $(STYLE)/detex.sed -e '1s+<dl>+<dl xmlns="http://www.w3.org/1999/xhtml">+' $@ >$@.tmp
+ mv $@.tmp $@