Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-10-21 22:58:23 -0400
committerDave Reisner <dreisner@archlinux.org>2018-10-23 12:13:18 -0400
commitdab45f0808951afc2e3146211a1c6d7ebb8bd06d (patch)
tree9b2b7a1d34a06cf2639eac956ef3952d5df35174
parentb5d62d2c91a2caf5c18945921cdf12af6f36b2d4 (diff)
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.
-rw-r--r--doc/.gitignore1
-rw-r--r--doc/Doxyfile.in (renamed from doc/Doxyfile)2
-rw-r--r--doc/Makefile.am5
3 files changed, 6 insertions, 2 deletions
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
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