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>
include/share/Makefile \
include/share/grabbag/Makefile \
include/test_libs_common/Makefile \
include/share/Makefile \
include/share/grabbag/Makefile \
include/test_libs_common/Makefile \
doc/Makefile \
doc/html/Makefile \
doc/html/images/Makefile \
doc/Makefile \
doc/html/Makefile \
doc/html/images/Makefile \
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = ../include/FLAC \
- ../include/FLAC++
+INPUT = @top_srcdir@/include/FLAC \
+ @top_srcdir@/include/FLAC++
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER = doxygen.footer.html
+HTML_FOOTER = @top_srcdir@/doc/doxygen.footer.html
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
# style sheet that is used by each HTML page. It can be used to
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
# style sheet that is used by each HTML page. It can be used to
SUBDIRS = . html
if FLaC__HAS_DOXYGEN
SUBDIRS = . html
if FLaC__HAS_DOXYGEN
FLAC.tag: Doxyfile
doxygen Doxyfile
rm -rf html/api
FLAC.tag: Doxyfile
doxygen Doxyfile
rm -rf html/api
-EXTRA_DIST = Doxyfile Makefile.lite doxygen.footer.html doxygen.header.html $(doc_DATA)
+EXTRA_DIST = Doxyfile.in Makefile.lite doxygen.footer.html doxygen.header.html $(doc_DATA)
maintainer-clean-local:
rm -rf FLAC.tag html/api doxytmp
maintainer-clean-local:
rm -rf FLAC.tag html/api doxytmp
# handle 'api/' specially:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(docdir)/api
# 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:
uninstall-local:
rm -rf $(DESTDIR)$(docdir)/api
maintainer-clean-local: