summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am54
1 files changed, 54 insertions, 0 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am
new file mode 100644
index 00000000000..3acae1631c4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.9.2/doc/Makefile.am
@@ -0,0 +1,54 @@
+## This file is part of dvisvgm
+## Copyright (C) 2005-2015 Martin Gieseking <martin.gieseking@uos.de>
+##
+## Process this file with automake.
+
+man_MANS = dvisvgm.1
+EXTRA_DIST = $(man_MANS) conf-dblatex-man.xsl conf-dblatex-pdf.xsl tweak-dblatex-pdf.xsl
+
+CONF_DBLATEX_MAN = $(top_srcdir)/doc/conf-dblatex-man.xsl
+CONF_DBLATEX_PDF = $(top_srcdir)/doc/conf-dblatex-pdf.xsl
+TWEAK_DBLATEX_PDF = $(top_srcdir)/doc/tweak-dblatex-pdf.xsl
+
+DB_VARS = man.endnotes.list.enabled=0 man.endnotes.are.numbered=0 man.authors.section.enabled=0
+
+dvisvgm.1: dvisvgm.xml $(CONF_DBLATEX_MAN)
+ if [ `type -p xmlto` ]; then \
+ xmlto -m $(CONF_DBLATEX_MAN) $(addprefix --stringparam , $(DB_VARS)) man $<; \
+ fi
+
+dvisvgm.pdf: dvisvgm.xml $(CONF_DBLATEX_PDF) $(TWEAK_DBLATEX_PDF)
+ mv $< $<.tmp
+ xsltproc -o $< $(TWEAK_DBLATEX_PDF) $<.tmp
+ dblatex -bxetex --texstyle=./dvisvgm.sty -p $(CONF_DBLATEX_PDF) $<
+ mv $<.tmp $<
+
+dvi-pdf: dvisvgm.dvi
+ dvipdfm $<
+ rm -f $<
+
+dvisvgm.dvi: dvisvgm.1
+ groff -Tdvi -mandoc ./$< >$@
+
+dvisvgm.html: dvisvgm.xml
+ xsltproc -o $@ db2html.xsl $<
+
+dvisvgm.epub: dvisvgm.xml
+ a2x -dmanpage -fmanpage -L -a icons $<;
+
+dvisvgm.xml: dvisvgm.txt
+ if [ `type -p asciidoc` ]; then \
+ asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage $<; \
+ sed -i "s#\(</refmeta>\)#<refmiscinfo class='date'>$(shell stat -c %y $<)</refmiscinfo>\n\1#" $@; \
+ fi
+
+epub: dvisvgm.epub
+html: dvisvgm.html
+man: dvisvgm.1
+pdf: dvisvgm.pdf
+
+clean:
+ rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub
+
+distclean-local:
+ rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub dvisvgm.1