summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-08-27 16:03:03 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-10-08 10:30:50 +0200
commit1dae711f17473e12c822a657ffca02abee27b3a2 (patch)
tree920f52f7defdf28aa75d8b0d87f25660ec90722b /doc
parent2eee4d0db7657800acbc7a926d48234465ed4e21 (diff)
downloadvala-1dae711f17473e12c822a657ffca02abee27b3a2.tar.gz
build: Allow disabling the build of valadoc
Allow disabling build of valadoc with configure option --disable-valadoc Fixes https://gitlab.gnome.org/GNOME/vala/issues/596
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am17
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 758ad733a..b79f229c4 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -6,11 +6,16 @@ SUBDIRS = \
dist_man_MANS = \
valac.1 \
- valadoc.1 \
vala-gen-introspect.1 \
vapigen.1 \
$(NULL)
+if ENABLE_VALADOC
+dist_man_MANS += \
+ valadoc.1 \
+ $(NULL)
+endif
+
EXTRA_DIST = \
valac.h2m \
valadoc.h2m \
@@ -19,7 +24,11 @@ EXTRA_DIST = \
$(NULL)
if HAVE_HELP2MAN
+if ENABLE_VALADOC
manpages: valac.1 valadoc.1 vala-gen-introspect.1 vapigen.1
+else
+manpages: valac.1 vala-gen-introspect.1 vapigen.1
+endif
@rm $^
$(MAKE) $(AM_MAKEFLAGS) $^
@@ -28,11 +37,13 @@ valac.1:
--include $(srcdir)/valac.h2m \
--libtool --no-info \
--output=$@
+if ENABLE_VALADOC
valadoc.1:
$(HELP2MAN) $(top_builddir)/valadoc/valadoc \
--include $(srcdir)/valadoc.h2m \
--libtool --no-info \
--output=$@
+endif
vala-gen-introspect.1:
$(HELP2MAN) $(top_builddir)/gobject-introspection/gen-introspect \
--include $(srcdir)/vala-gen-introspect.h2m \
@@ -49,12 +60,15 @@ endif
if ENABLE_UNVERSIONED
install-data-hook:
cd $(DESTDIR)$(man1dir) && $(LN_S) -f valac@PACKAGE_SUFFIX@.1 valac.1
+if ENABLE_VALADOC
cd $(DESTDIR)$(man1dir) && $(LN_S) -f valadoc@PACKAGE_SUFFIX@.1 valadoc.1
+endif
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
+if ENABLE_VALADOC
COMMON_VALADOCFLAGS = \
--force \
--verbose \
@@ -130,6 +144,7 @@ internal-apis/valadoc: $(valadoc_VALASOURCES) internal-apis/codegen
@touch $@
internal-api-docs: internal-apis/gee internal-apis/vala internal-apis/ccode internal-apis/codegen internal-apis/valadoc
+endif
clean-local:
rm -rf $(builddir)/internal-apis