blob: 8719159510bce744bd4f02995a56f5d7cb0d1dd0 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
folksdocdir=$(datadir)/devhelp/references/folks
folksimgdir=$(datadir)/devhelp/references/folks/img
folksgtkdocdir=$(datadir)/gtk-doc/html/folks
folkstelepathydocdir=$(datadir)/devhelp/references/folks-telepathy
folkstelepathyimgdir=$(datadir)/devhelp/references/folks-telepathy/img
folkstelepathygtkdocdir=$(datadir)/gtk-doc/html/folks-telepathy
common_doc_files = \
*.css \
*.png \
*.js \
index.htm \
*.html \
$(NULL)
folksdoc_DATA = \
folks/folks/folks.devhelp2 \
$(addprefix folks/folks/,$(common_doc_files)) \
$(NULL)
folksgtkdoc_DATA = gtk-doc/folks/html/*
folkstelepathydoc_DATA = \
folks-telepathy/folks-telepathy/folks-telepathy.devhelp2 \
$(addprefix folks-telepathy/folks-telepathy/,$(common_doc_files)) \
$(NULL)
folkstelepathygtkdoc_DATA = gtk-doc/folks-telepathy/html/*
folksimg_DATA = \
folks/folks/img/*.png \
$(NULL)
folkstelepathyimg_DATA = \
folks-telepathy/folks-telepathy/img/*.png \
$(NULL)
$(folksdoc_DATA) $(folksimg_DATA): folks-doc
$(folksgtkdoc_DATA): folks-gtk-doc
$(folkstelepathydoc_DATA) $(folkstelepathyimg_DATA): folks-telepathy-doc
$(folkstelepathygtkdoc_DATA): folks-telepathy-gtk-doc
valadoc_flags = \
--force \
--package-version $(PACKAGE_VERSION) \
$(NULL)
# We need to modify LDFLAGS so that gtkdoc-scangobj can find the symbols when
# it comes to link its scanning program. This is what gtk-doc.make does for
# normal gtk-doc-enabled projects.
# FIXME: An enhancement request has been filed against valadoc for it to do this
# automatically for us: https://bugzilla.gnome.org/show_bug.cgi?id=637090
LDFLAGS = \
$(abs_top_builddir)/folks/libfolks.la \
$(abs_top_builddir)/backends/telepathy/lib/libfolks-telepathy.la \
@LDFLAGS@ \
$(NULL)
# folks documentation
folks_doc_files = $(top_srcdir)/folks/*.vala
folks_doc_deps = \
gmodule-2.0 \
gio-2.0 \
gee-1.0 \
build-conf \
$(NULL)
valadoc_flags_folks = \
$(valadoc_flags) \
-b $(top_srcdir)/folks \
$(addprefix --pkg=,$(folks_doc_deps)) \
--vapidir=$(top_srcdir)/folks \
$(folks_doc_files) \
$(NULL)
folks-doc: $(folks_doc_files)
$(AM_V_GEN)$(VALADOC) \
-o folks/ \
--doclet=devhelp \
$(valadoc_flags_folks) \
$(NULL)
folks-gtk-doc: $(folks_doc_files)
$(AM_V_GEN)$(VALADOC) \
-X -l -X $(top_builddir)/folks/.libs/libfolks.so \
-o gtk-doc/folks \
--doclet=gtkdoc \
$(valadoc_flags_folks) \
$(NULL)
# folks-telepathy documentation
folks_telepathy_doc_files = $(top_srcdir)/backends/telepathy/lib/*.vala
folks_telepathy_doc_deps = \
gmodule-2.0 \
gio-2.0 \
gee-1.0 \
dbus-glib-1 \
telepathy-glib \
tp-lowlevel \
build-conf \
folks \
$(NULL)
valadoc_flags_folks_telepathy = \
$(valadoc_flags) \
-b $(top_srcdir)/backends/telepathy/lib \
$(addprefix --pkg=,$(folks_telepathy_doc_deps)) \
--vapidir=$(top_srcdir)/folks \
--vapidir=$(top_srcdir)/backends/telepathy/lib \
$(folks_telepathy_doc_files) \
$(NULL)
folks-telepathy-doc: $(folks_telepathy_doc_files)
$(AM_V_GEN)$(VALADOC) \
-o folks-telepathy/ \
--doclet=devhelp \
$(valadoc_flags_folks_telepathy) \
$(NULL)
folks-telepathy-gtk-doc: $(folks_telepathy_doc_files)
$(AM_V_GEN)$(VALADOC) \
-X -l \
-X $(top_builddir)/folks/.libs/libfolks.so \
-X $(top_builddir)/backends/telepathy/lib/.libs/libfolks-telepathy.so \
-o gtk-doc/folks-telepathy \
--doclet=gtkdoc \
$(valadoc_flags_folks_telepathy) \
$(NULL)
.PHONY: folks-doc folks-gtk-doc folks-telepathy-doc folks-telepathy-gtk-doc
distclean-local: distclean-docs
distclean-docs:
rm -rf folks && \
rm -rf folks-telepathy && \
rm -rf gtk-doc
GITIGNOREFILES = \
folks/ \
folks-telepathy/ \
gtk-doc/ \
$(NULL)
-include $(top_srcdir)/git.mk
|