summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2014-09-07 08:49:05 -0700
committerTushar Gohad <tushar.gohad@intel.com>2014-09-07 12:49:21 -0700
commitc85e1bacd36ca83ece37d70ae63409d010aef0cf (patch)
treef57cec71c990a41bdeac25e75ebab3875eaedb1a /doc
parent2a103711fafd7258420c478130c6e850b23698d2 (diff)
downloadliberasurecode-c85e1bacd36ca83ece37d70ae63409d010aef0cf.tar.gz
Integrate doxygen with autoconf infrastructure
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am36
-rw-r--r--doc/doxygen.cfg.in (renamed from doc/Doxyfile)8
2 files changed, 40 insertions, 4 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..aea521f
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,36 @@
+DOC_MODULE="liberasurecode"
+HTML_DIR=$(datadir)/$(DOC_MODULE)/html
+TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
+
+all-local: html/index.html
+
+if ENABLE_DOXYGEN
+html/index.html: doxygen.cfg
+ doxygen doxygen.cfg
+else
+html/index.html:
+endif
+
+clean-local:
+ rm -f *~ *.bak
+ rm -rf html
+
+install-data-local: html
+ $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
+ (installfiles=`echo html/*`; \
+ if test "$$installfiles" = 'html/*'; \
+ then echo '-- Nothing to install' ; \
+ else \
+ for i in $$installfiles; do \
+ echo '-- Installing '$$i ; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
+ done; \
+ fi)
+
+dist-hook:
+ mkdir $(distdir)/html
+ mkdir $(distdir)/man
+ -cp html/* $(distdir)/html
+ -cp man/* $(distdir)/man
+
+.PHONY : html latex man
diff --git a/doc/Doxyfile b/doc/doxygen.cfg.in
index 08c0a43..ec2c87d 100644
--- a/doc/Doxyfile
+++ b/doc/doxygen.cfg.in
@@ -32,13 +32,13 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.
-PROJECT_NAME = "liberasurecode"
+PROJECT_NAME = @PACKAGE_NAME@
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER = @PACKAGE_VERSION@
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
@@ -751,8 +751,8 @@ WARN_LOGFILE =
# spaces.
# Note: If this tag is empty the current directory is searched.
-INPUT = ../include/erasurecode/erasurecode.h \
- ../include/erasurecode/erasurecode_backend.h
+INPUT = @top_srcdir@/include/erasurecode/erasurecode.h \
+ @top_srcdir@/include/erasurecode/erasurecode_backend.h
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses