summaryrefslogtreecommitdiff
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
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.
-rw-r--r--Makefile.am6
-rw-r--r--doc/Makefile.am4
2 files changed, 7 insertions, 3 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 = \
diff --git a/doc/Makefile.am b/doc/Makefile.am
index c9b5343..b96acc1 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -60,8 +60,8 @@ Doxyfile: Doxyfile.in $(VA_HEADER_FILES) $(VA_HTML_FOOTER)
html-out/index.html: Doxyfile
$(AM_V_GEN) $(DOXYGEN)
-if ENABLE_DOCS
html: html-out/index.html
+
install-html-local:
install -d $(DESTDIR)$(docdir)/html
for file in `ls html-out/` ; do \
@@ -72,9 +72,9 @@ install-html-local:
install -m 0644 html-out/$$file/* $(DESTDIR)$(docdir)/html/$$file; \
fi ; \
done
+
uninstall-local:
rm -rf $(DESTDIR)$(docdir)/html
-endif
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in Doxyfile