summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-07 13:38:53 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-07 13:38:53 +0100
commit38be9d94aedd57dc77da3b994173e22f7c4ce0df (patch)
treeb9f4371b29d6884e9ec9ec1a7667b4375db54ec0
parentb59552003ed62c635fbcbf64d15662ecdc0c8c1a (diff)
Generate doxygen file using autoconf.
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac2
-rw-r--r--doc/rofi.doxy.in (renamed from doc/rofi.doxy)4
3 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 0acfa9ff..46582441 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -110,6 +110,7 @@ EXTRA_DIST=\
${top_srcdir}/config/config.def.c\
INSTALL.md\
AUTHORS\
+ doc/rofi.doxy.in\
Changelog
##
@@ -227,5 +228,6 @@ cppcheck: ${rofi_SOURCES}
ohcount: ${rofi_SOURCES}
ohcount -i ${top_srcdir}/source/
-doxy: ${rofi_SOURCES}
- doxygen ${top_srcdir}/doc/rofi.doxy
+doxy: doc/rofi.doxy ${rofi_SOURCES}
+ doxygen ${top_builddir}/doc/rofi.doxy
+
diff --git a/configure.ac b/configure.ac
index a5d4a7a1..d1d0b7ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ dnl Add extra compiler flags
dnl ---------------------------------------------------------------------
AC_SUBST([EXTRA_CFLAGS], ["-Wall -Wextra -Wparentheses -Winline -pedantic"])
-AC_CONFIG_FILES([Makefile ])
+AC_CONFIG_FILES([Makefile doc/rofi.doxy])
AC_OUTPUT
dnl -----------------------------------------------
diff --git a/doc/rofi.doxy b/doc/rofi.doxy.in
index abac40e4..26713332 100644
--- a/doc/rofi.doxy
+++ b/doc/rofi.doxy.in
@@ -25,13 +25,13 @@ DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
-PROJECT_NAME = "rofi"
+PROJECT_NAME = "@PACKAGE@"
# 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 = "1.0.0-dev"
+PROJECT_NUMBER = "@VERSION@"
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.