doc: fix out-of-tree build

When building outside of the source tree, the Doxyfile needs to be
generated in the build tree and should point to the proper paths for
include directories and html footer.

The generated api files to install should also be taken from the build
tree instead of the source tree.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
Olivier Blin
2012-12-28 19:58:46 +01:00
committed by Erik de Castro Lopo
parent fb13acc457
commit f699788f31
4 changed files with 7 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ if FLaC__HAS_DOXYGEN
# handle 'api/' specially:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(docdir)/api
(cd $(srcdir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
(cd $(builddir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
uninstall-local:
rm -rf $(DESTDIR)$(docdir)/api
maintainer-clean-local: