blob: 3acae1631c46ae18b28e0ab75512ab375e983501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
|