From dab45f0808951afc2e3146211a1c6d7ebb8bd06d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 21 Oct 2018 22:58:23 -0400 Subject: [PATCH] Dynamically generate Doxyfile from input This isn't super interesting for the autotools side, but it's necessary in order to make things sane for other build systems which we might introduce in the future. --- doc/.gitignore | 1 + doc/{Doxyfile => Doxyfile.in} | 2 +- doc/Makefile.am | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) rename doc/{Doxyfile => Doxyfile.in} (99%) diff --git a/doc/.gitignore b/doc/.gitignore index a9736555..4e41f359 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -6,3 +6,4 @@ asciidoc.js *.xml man3 website.tar.gz +Doxyfile diff --git a/doc/Doxyfile b/doc/Doxyfile.in similarity index 99% rename from doc/Doxyfile rename to doc/Doxyfile.in index 4e64534a..78481dd5 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile.in @@ -8,7 +8,7 @@ PROJECT_NAME = libalpm PROJECT_NUMBER = PROJECT_BRIEF = "Arch Linux Package Manager Library" PROJECT_LOGO = -OUTPUT_DIRECTORY = ./ +OUTPUT_DIRECTORY = @OUTPUT_DIRECTORY@ CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES diff --git a/doc/Makefile.am b/doc/Makefile.am index 2ac38cba..711921fd 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -92,7 +92,10 @@ man_MANS += $(DOXYGEN_MANS) all-local: doxygen.in -doxygen.in: +Doxyfile: Doxyfile.in + sed 's,@OUTPUT_DIRECTORY@,./,' Doxyfile.in >Doxyfile + +doxygen.in: Doxyfile $(DOXYGEN) $(srcdir)/Doxyfile endif