summaryrefslogtreecommitdiff
path: root/dviware/dvi2bitmap/doc/Makefile.am
blob: 15f3868255bb60a019d7a49847018f17dfd043c0 (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
## Process this file with automake to produce Makefile.in

XSLTPROC=@XSLTPROC@

XML2HTML=xml2html
include xml2html/Makefile


doc.html: doc.xhtml style.css
# ReleaseNotes.xml is for pre-1.0 releases
doc.xhtml: doc.xml doc.img version.ent

doc-m.tex: doc.xml
	$(XSLTPROC) --stringparam target m xml2html/structure.xslt doc.xml | \
	  sed -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&amp;/\&/g' >doc-m.tex
doc.img: doc-m.tex
	rm -Rf doc.img; mkdir doc.img
	cp doc-m.tex doc.img
	cd doc.img; tex doc-m
	cd doc.img; ../../dvi2bitmap --magnification=3 --scaledown=3 --output-type=gif doc-m

style.css:
	cp ../html/style.css .

version.ent: Makefile
	rm -f version.ent
	echo '<!ENTITY version "$(PACKAGE_VERSION)">' >version.ent

CLEANFILES=doc.html doc.xhtml doc-m.tex style.css