summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-01-19 19:20:49 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2018-02-01 09:24:11 +0800
commitfe04a9778c8e0308173ebc8dae28b6fa1c9771c9 (patch)
treeae0f89984a5ba4c7fc89875c80783e7289b1fe0a /Makefile.am
parent8f6a550b7d523c0c9520f848b7b3840f1ec11a78 (diff)
downloadlibva-fe04a9778c8e0308173ebc8dae28b6fa1c9771c9.tar.gz
build: use condititional doc generation
Instead of using conditional compilation for generarte documentation, this patch will block parsing Makefile in doc subdirectory if the documentation is not enabled. This patch will make compilation a bit faster when documentation is not generated.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index f149bfe..8362566 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,11 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = va pkgconfig doc
+SUBDIRS = va pkgconfig
+
+if ENABLE_DOCS
+SUBDIRS += doc
+endif
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = \