Keep Doxyfile in sync with Autoconf

Generating Doxygen configuration file – Doxyfile from Autoconf is simple and helps to avoid duplication of version numbers, input and output directories and packages names. Doxyfile can be generated like Makefiles from by configure script.

First generate Doxyfile skeleton like usual:

$ doxygen -g

Then open in $EDITOR and set following variables:


INPUT                  = @top_srcdir@
OUTPUT_DIRECTORY       = @top_builddir@/doc

RECURSIVE              = YES

Finally add Doxyfile to (or .in if you prefer .in convention):


Recreate configure script and run it (just run “make” and it will do all the magic for you).

Next time you change version, package name or anything else in Autoconf Doxyfile will be recreated with updated values.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.