From 252d0583101de6163d6a99a7a03780249446b26c Mon Sep 17 00:00:00 2001 From: darkcoven Date: Fri, 11 Oct 2013 22:06:42 +0200 Subject: [PATCH] Use autotools to fill some fields of doxyfile --- .gitignore | 1 + configure.ac | 21 +++++++++++++-------- lib/Makefile.am | 4 ++-- lib/{ngadmin => doxyfile.in} | 8 ++++---- 4 files changed, 20 insertions(+), 14 deletions(-) rename lib/{ngadmin => doxyfile.in} (99%) diff --git a/.gitignore b/.gitignore index 3fdd61b..0c133cb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *.pc ngcli ngspy +doxyfile lib/doc/ raw/doc/ *.m4 diff --git a/configure.ac b/configure.ac index eeafab3..3dce523 100644 --- a/configure.ac +++ b/configure.ac @@ -105,20 +105,25 @@ AC_CONFIG_FILES([ AM_COND_IF([ENABLE_SPY], [ AC_CONFIG_FILES([ - spy/Makefile - spy/man/Makefile - spy/src/Makefile - ]) + spy/Makefile + spy/man/Makefile + spy/src/Makefile + ]) ]) AM_COND_IF([ENABLE_EMU], [ AC_CONFIG_FILES([ - emu/Makefile - emu/man/Makefile - emu/src/Makefile - ]) + emu/Makefile + emu/man/Makefile + emu/src/Makefile + ]) ]) +AM_COND_IF([HAVE_DOXYGEN], [ + AC_CONFIG_FILES([ + lib/doxyfile + ]) +]) AC_OUTPUT diff --git a/lib/Makefile.am b/lib/Makefile.am index 3628c13..08ef1ea 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -7,8 +7,8 @@ if HAVE_DOXYGEN all-local: doc -doc: - $(DOXYGEN) ngadmin +doc: doxyfile + $(DOXYGEN) $< clean-local: diff --git a/lib/ngadmin b/lib/doxyfile.in similarity index 99% rename from lib/ngadmin rename to lib/doxyfile.in index ac51d72..0ffb0d2 100644 --- a/lib/ngadmin +++ b/lib/doxyfile.in @@ -26,13 +26,13 @@ DOXYFILE_ENCODING = UTF-8 # identify the project. Note that if you do not use Doxywizard you need # to put quotes around the project name if it contains spaces. -PROJECT_NAME = NgAdmin +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 @@ -130,7 +130,7 @@ FULL_PATH_NAMES = NO # relative paths, which will be relative from the directory where doxygen is # started. -STRIP_FROM_PATH = +STRIP_FROM_PATH = @top_srcdir@ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells @@ -668,7 +668,7 @@ WARN_LOGFILE = # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = include +INPUT = @top_srcdir@/lib/include # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -- 2.39.2