[vala/wip/docs: 2/3] doc: Add support to build docs for vala itself
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/docs: 2/3] doc: Add support to build docs for vala itself
- Date: Wed, 6 Sep 2017 08:16:31 +0000 (UTC)
commit 0819faf7ae8d31b34e4ae5e11ba724ea1fd37c44
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 14 14:37:13 2017 +0100
doc: Add support to build docs for vala itself
doc/Makefile.am | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/doc/Makefile.am b/doc/Makefile.am
index d742011..726df53 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -53,3 +53,83 @@ install-data-hook:
cd $(DESTDIR)$(man1dir) && $(LN_S) -f vala-gen-introspect@PACKAGE_SUFFIX@.1 vala-gen-introspect.1
cd $(DESTDIR)$(man1dir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@.1 vapigen.1
endif
+
+
+COMMON_VALADOCFLAGS = \
+ --force \
+ --verbose \
+ --private \
+ --internal \
+ --use-svg-images \
+ --deps \
+ --vapidir=$(top_builddir)/vapi \
+ --pkg config \
+ --pkg gmodule-2.0 \
+ --directory=valaitself/ \
+ --doclet=html \
+ --basedir=valaitself/ \
+ $(NULL)
+
+if HAVE_CGRAPH
+COMMON_VALADOCFLAGS += -D WITH_CGRAPH
+endif
+
+gee_VALASOURCES = $(top_srcdir)/gee/*.vala
+valaitself/gee: $(gee_VALASOURCES)
+ $(AM_V_GEN)$(top_builddir)/valadoc/valadoc \
+ $(COMMON_VALADOCFLAGS) \
+ --package-name gee \
+ --package-version $(PACKAGE_VERSION) \
+ $(filter %.vala,$^)
+ @touch $@
+
+vala_VALASOURCES = $(top_srcdir)/vala/*.vala
+valaitself/vala: $(vala_VALASOURCES) valaitself/gee
+ $(AM_V_GEN)$(top_builddir)/valadoc/valadoc \
+ $(COMMON_VALADOCFLAGS) \
+ --package-name vala \
+ --package-version $(PACKAGE_VERSION) \
+ --vapidir=$(top_builddir)/gee --pkg gee \
+ $(filter %.vala,$^)
+ @touch $@
+
+ccode_VALASOURCES = $(top_srcdir)/ccode/*.vala
+valaitself/ccode: $(ccode_VALASOURCES) valaitself/gee
+ $(AM_V_GEN)$(top_builddir)/valadoc/valadoc \
+ $(COMMON_VALADOCFLAGS) \
+ --package-name ccode \
+ --package-version $(PACKAGE_VERSION) \
+ --vapidir=$(top_builddir)/gee --pkg gee \
+ $(filter %.vala,$^)
+ @touch $@
+
+codegen_VALASOURCES = $(top_srcdir)/codegen/*.vala
+valaitself/codegen: $(codegen_VALASOURCES) valaitself/vala valaitself/ccode
+ $(AM_V_GEN)$(top_builddir)/valadoc/valadoc\
+ $(COMMON_VALADOCFLAGS) \
+ --package-name codegen \
+ --package-version $(PACKAGE_VERSION) \
+ --vapidir=$(top_builddir)/gee --pkg gee \
+ --vapidir=$(top_builddir)/vala --pkg vala \
+ --vapidir=$(top_builddir)/ccode --pkg ccode \
+ $(filter %.vala,$^)
+ @touch $@
+
+valadoc_VALASOURCES = $(top_srcdir)/libvaladoc/*.vala $(top_srcdir)/libvaladoc/*/*.vala
+valaitself/valadoc: $(valadoc_VALASOURCES) valaitself/codegen
+ $(AM_V_GEN)$(top_builddir)/valadoc/valadoc\
+ $(COMMON_VALADOCFLAGS) \
+ --package-name valadoc \
+ --package-version $(PACKAGE_VERSION) \
+ --pkg libgvc \
+ --vapidir=$(top_builddir)/gee --pkg gee \
+ --vapidir=$(top_builddir)/vala --pkg vala \
+ --vapidir=$(top_builddir)/ccode --pkg ccode \
+ --vapidir=$(top_builddir)/codegen --pkg codegen \
+ $(filter %.vala,$^)
+ @touch $@
+
+valaitself: valaitself/gee valaitself/vala valaitself/ccode valaitself/codegen valaitself/valadoc
+
+clean-local:
+ rm -rf $(builddir)/valaitself
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]