diff mbox

[5/8] doc: cleanup doxygen

Message ID 1421312084-12881-6-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell Jan. 15, 2015, 8:54 a.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 aminclude.am          |  4 ----
 configure.ac          | 13 ++++++++-----
 doc/doxygen.cfg       |  2 +-
 m4/ax_prog_doxygen.m4 |  1 +
 4 files changed, 10 insertions(+), 10 deletions(-)
diff mbox

Patch

diff --git a/aminclude.am b/aminclude.am
index a8ce032..8e03174 100644
--- a/aminclude.am
+++ b/aminclude.am
@@ -148,11 +148,7 @@  doxygen-doc: doxygen-html $(DX_PS_GOAL) $(DX_PDF_GOAL)
 
 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
 	rm -rf @DX_DOCDIR@
-	@mkdir -p @DX_DOCDIR@/api_headers
-	@cp ${srcdir}/platform/linux-generic/include/api/odp_*.h @DX_DOCDIR@/api_headers
-	@cp ${srcdir}/platform/${with_platform}/include/api/odp_*.h @DX_DOCDIR@/api_headers
 	$(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
-	@rm -rf @DX_DOCDIR@/api_headers
 
 DX_CLEANFILES = \
     @DX_DOCDIR@/@PACKAGE@.tag \
diff --git a/configure.ac b/configure.ac
index 2e9faf5..d5808ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,11 +9,6 @@  AC_SYS_LARGEFILE
 AC_CONFIG_MACRO_DIR([m4])
 AM_SILENT_RULES([yes])
 
-DX_HTML_FEATURE(ON)
-DX_PDF_FEATURE(ON)
-DX_PS_FEATURE(OFF)
-DX_INIT_DOXYGEN($PACKAGE_NAME, doc/doxygen.cfg, doc/output)
-
 # Checks for programs.
 AC_PROG_CC
 AM_PROG_CC_C_O
@@ -63,6 +58,14 @@  AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"])
 
 
 ##########################################################################
+# Setup doxygen documentation
+##########################################################################
+DX_HTML_FEATURE(ON)
+DX_PDF_FEATURE(ON)
+DX_PS_FEATURE(OFF)
+DX_INIT_DOXYGEN($PACKAGE_NAME, doc/doxygen.cfg, doc/output)
+
+##########################################################################
 # Enable/disable Unit tests
 ##########################################################################
 AC_ARG_ENABLE([cunit],
diff --git a/doc/doxygen.cfg b/doc/doxygen.cfg
index ff7c278..12d7cd1 100644
--- a/doc/doxygen.cfg
+++ b/doc/doxygen.cfg
@@ -10,7 +10,7 @@  TYPEDEF_HIDES_STRUCT = YES
 EXTRACT_STATIC = YES
 SORT_MEMBER_DOCS = NO
 WARN_NO_PARAMDOC = YES
-INPUT = $(SRCDIR)/doc $(SRCDIR)/doc/users-guide $(DOCDIR)/api_headers $(SRCDIR)/helper/include $(SRCDIR)/example/packet $(SRCDIR)/example/l2fwd $(SRCDIR)/example/generator $(SRCDIR)/example/timer
+INPUT = $(SRCDIR)/doc $(SRCDIR)/doc/users-guide $(SRCDIR)/platform/linux-generic/include/api $(SRCDIR)/platform/$(WITH_PLATFORM)/include/api $(SRCDIR)/helper/include $(SRCDIR)/example/packet $(SRCDIR)/example/l2fwd $(SRCDIR)/example/generator $(SRCDIR)/example/timer
 FILE_PATTERNS = odp*.h odp*.c *.dox
 RECURSIVE = YES
 SOURCE_BROWSER = YES
diff --git a/m4/ax_prog_doxygen.m4 b/m4/ax_prog_doxygen.m4
index 0f58b3e..58bb016 100644
--- a/m4/ax_prog_doxygen.m4
+++ b/m4/ax_prog_doxygen.m4
@@ -408,6 +408,7 @@  DX_ENV_APPEND(SRCDIR, $srcdir)
 DX_ENV_APPEND(PROJECT, $DX_PROJECT)
 DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
 DX_ENV_APPEND(VERSION, $VERSION)
+DX_ENV_APPEND(WITH_PLATFORM, $with_platform)
 
 # Doxygen itself:
 DX_ARG_ABLE(doc, [generate any doxygen documentation],