summaryrefslogtreecommitdiff
path: root/doc/vala/Makefile.am
blob: 2c1a7bf10d2d98dd9796afdb71d0797a95bb7e09 (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
55
56
57
58
59
60
61
bookdir=$(datadir)/devhelp/books/vala

chapter_data = \
	overview.html \
	types.html \
	expressions.html \
	statements.html \
	namespaces.html \
	classes.html \
	structs.html \
	interfaces.html \
	enums.html \
	delegates.html \
	exceptions.html \
	$(NULL)

built_data = \
	index.html \
	$(chapter_data) \
	vala.devhelp2 \
	$(NULL)

if HAVE_XSLTPROC
book_DATA = \
	$(built_data) \
	default.css \
	$(NULL)
endif

index.html: $(book_sources) xhtml.xsl
	$(XSLTPROC) --xinclude $(srcdir)/xhtml.xsl $(srcdir)/index.xml > index.html

$(chapter_data): index.html

vala.devhelp2: $(book_sources) devhelp.xsl
	$(XSLTPROC) --xinclude $(srcdir)/devhelp.xsl $(srcdir)/index.xml > vala.devhelp2

book_sources = \
	index.xml \
	overview.xml \
	types.xml \
	expressions.xml \
	statements.xml \
	namespaces.xml \
	classes.xml \
	structs.xml \
	interfaces.xml \
	enums.xml \
	delegates.xml \
	exceptions.xml \
	$(NULL)

MOSTLYCLEANFILES = $(built_data)

EXTRA_DIST = \
	$(book_sources) \
	default.css \
	xhtml.xsl \
	devhelp.xsl \
	$(NULL)