summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-12-16 17:49:22 +0000
committerBastien Nocera <hadess@hadess.net>2011-12-16 17:57:39 +0000
commite4bdee8e874a2032bfd14618798b47293705535e (patch)
tree178d858656b581ff27c108fbc1600cd43f289d32 /doc
parent8c727fcee14727ec8492d3581f21a34cec8db772 (diff)
doc: Fix building when srcdir != builddir
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am9
-rw-r--r--doc/doxygen.conf.in (renamed from doc/doxygen.conf)2
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 27850a8..d4af222 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,12 +1,15 @@
-EXTRA_DIST = doxygen.conf
+EXTRA_DIST = doxygen.conf.in
if HAVE_DOXYGEN
EXTRA_DIST += html
all-local: doxygen
-doxygen: $(top_srcdir)/libwacom/libwacom.h
- doxygen doxygen.conf
+doxygen.conf: doxygen.conf.in
+ $(AM_V_GEN) sed -e "s|\@TOPSRCDIR\@|$(top_srcdir)|" $< > $@
+
+doxygen: $(top_srcdir)/libwacom/libwacom.h doxygen.conf
+ doxygen $(builddir)/doxygen.conf
clean-local:
rm -rf html
diff --git a/doc/doxygen.conf b/doc/doxygen.conf.in
index b021c8e..1009657 100644
--- a/doc/doxygen.conf
+++ b/doc/doxygen.conf.in
@@ -629,7 +629,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = ../libwacom/libwacom.h
+INPUT = @TOPSRCDIR@/libwacom/libwacom.h
# 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