Commit fec517a4 authored by Colomban Wendling's avatar Colomban Wendling

LibOVCC{,Client}: don't build the doc on all: but on doc:

This avoids building the doc on each build, which is slow and most
likely not wanted.  So, move the doc from the "all" target to the "doc"
one, and hook on dist too.

This also fixes distributing the documentation by including it in the
dist tarballs.
parent e07cdb53
......@@ -2,6 +2,9 @@ SUBDIRS = src docs
ACLOCAL_AMFLAGS = -I build/m4 -I build
.PHONY: doc
pkgconfig_DATA=ovcc.pc
doc:
$(MAKE) $@ -C docs
.PHONY: doc
......@@ -19,6 +19,11 @@ valadoc_real_flags = --no-protected \
--package-version $(VALADOC_MODULE_VERSION) \
$(VALADOC_FILES)
EXTRA_DIST = html devhelp gtkdoc
doc: html devhelp gtkdoc
dist-hook: html devhelp gtkdoc
# Removing the target before building the documentation avoids conflicts
# between doclet and directory names, since valadoc first tries to find the
# doclet in the current directory.
......@@ -72,12 +77,11 @@ uninstall-hook: uninstall-doc-devhelp uninstall-doc-gtkdoc
install-data-hook: install-doc-devhelp install-doc-gtkdoc
all: html devhelp gtkdoc
.PHONY: uninstall-doc-devhelp \
install-doc-devhelp \
uninstall-doc-gtkdoc \
install-doc-gtkdoc
install-doc-gtkdoc \
doc
endif
......@@ -3,3 +3,8 @@ SUBDIRS = src docs
ACLOCAL_AMFLAGS = -I build/m4 -I build
pkgconfig_DATA=ovccclient.pc
doc:
$(MAKE) $@ -C docs
.PHONY: doc
......@@ -19,6 +19,11 @@ valadoc_real_flags = --no-protected \
--package-version $(VALADOC_MODULE_VERSION) \
$(VALADOC_FILES)
EXTRA_DIST = html devhelp gtkdoc
doc: html devhelp gtkdoc
dist-hook: html devhelp gtkdoc
# Removing the target before building the documentation avoids conflicts
# between doclet and directory names, since valadoc first tries to find the
# doclet in the current directory.
......@@ -72,12 +77,11 @@ uninstall-hook: uninstall-doc-devhelp uninstall-doc-gtkdoc
install-data-hook: install-doc-devhelp install-doc-gtkdoc
all: html devhelp gtkdoc
.PHONY: uninstall-doc-devhelp \
install-doc-devhelp \
uninstall-doc-gtkdoc \
install-doc-gtkdoc
install-doc-gtkdoc \
doc
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment