summaryrefslogtreecommitdiff
path: root/books/Makefile.am
blob: ff678576cfb8075ff4f44e6ee701f9cf3a4167da (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
SUFFIXES = .xml .html .txt .asc .1

.xml.html:
	xmlto -o html xhtml-nochunks $<

.xml.1:
	xmlto -o man man $<

.xml.txt:
	xmlto -o txt txt $<

.asc.html:
	asciidoc $<

all: allhtml manpages

XMLMAN =
XMLDOC = \
	docbook/SpiceUserManual-Basics.xml \
	docbook/SpiceUserManual-Installation.xml \
	docbook/SpiceUserManual-Introduction.xml \
	docbook/SpiceUserManual-References.xml \
	docbook/SpiceUserManual.xml
XMLALL = $(XMLMAN) $(XMLDOC)
SOURCES = $(XMLALL) $(TXTDOC)
SITEHTML = index.html

allhtml: $(XMLALL:.xml=.html)

manpages: $(XMLMAN:.xml=.1)

# Control what goes in the distribution tarball.
# We include all of the XML, and also generated manual pages
# so people working from the distribution tarball won't need xmlto.
EXTRA_DIST = $(SOURCES) $(XMLMAN:.xml=.1)

clean-local:
	rm -fr staging $(XMLALL:.xml=.html) $(XMLMAN:.xml=.1)