$(doc_data) $(innerdoc_DATA) $(img_DATA): folks-0.1/index.html
+VALAFLAGS = --vapidir=$(top_srcdir)/folks --vapidir=$(top_srcdir)/backends/telepathy
+VALAFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --variable=valaflags telepathy-vala)
+
# The Vala files which will have documentation extracted from them
-doc_files = $(top_srcdir)/folks/*.vala
+doc_files = $(top_srcdir)/folks/*.vala $(top_srcdir)/backends/telepathy/*.vala
folks-0.1/index.html: $(doc_files)
$(VALADOC) -o folks-0.1/ --force -b $(top_srcdir) \
--pkg=gee-1.0 --pkg=gio-2.0 --pkg=gmodule-2.0 --pkg=build-conf \
- --vapidir=$(top_srcdir)/folks $(doc_files)
+ --pkg=telepathy-glib --pkg=tp-lowlevel \
+ $(VALAFLAGS) $(doc_files)
+