Merge pull request #32 from fooishbar/master doc: Fix Doxygen include for srcdir != builddir
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
diff --git a/.travis.yml b/.travis.yml
index 88dd261..4b2a66a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,7 @@ language: c
before_install:
- sudo apt-get update -qq
- - sudo apt-get install xutils-dev
+ - sudo apt-get install xutils-dev doxygen
compiler:
- gcc
diff --git a/Makefile.am b/Makefile.am
index 232d8e5..4115670 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -151,7 +151,7 @@ all-local:: doc
clean-local:: clean-doc
doc/stamp-doxygen: $(top_srcdir)/xkbcommon/*.h
- $(AM_V_GEN)$(DOXYGEN) doc/Doxyfile
+ $(AM_V_GEN)(cd $(top_srcdir) && $(DOXYGEN) $(abs_top_builddir)/doc/Doxyfile)
touch $@
clean-doxygen:
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
index c71d3a9..36d517d 100644
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -2,7 +2,7 @@ PROJECT_NAME = @PACKAGE_NAME@
PROJECT_NUMBER = @PACKAGE_VERSION@
-OUTPUT_DIRECTORY = doc
+OUTPUT_DIRECTORY = @abs_top_builddir@/doc
BRIEF_MEMBER_DESC = NO
@@ -18,13 +18,13 @@ QUIET = YES
WARN_IF_UNDOCUMENTED = NO
-INPUT = @abs_top_srcdir@/README.md \
- @abs_top_srcdir@/doc/quick-guide.md \
- @abs_top_srcdir@/doc/compat.md \
- @abs_top_srcdir@/xkbcommon/xkbcommon.h \
- @abs_top_srcdir@/xkbcommon/xkbcommon-names.h \
- @abs_top_srcdir@/xkbcommon/xkbcommon-x11.h \
- @abs_top_srcdir@/xkbcommon/xkbcommon-compose.h \
+INPUT = README.md \
+ doc/quick-guide.md \
+ doc/compat.md \
+ xkbcommon/xkbcommon.h \
+ xkbcommon/xkbcommon-names.h \
+ xkbcommon/xkbcommon-x11.h \
+ xkbcommon/xkbcommon-compose.h \
FILE_PATTERNS = *.c \
*.h
@@ -40,7 +40,7 @@ ALPHABETICAL_INDEX = NO
IGNORE_PREFIX = xkb_ \
XKB_
-HTML_EXTRA_STYLESHEET = @abs_top_srcdir@/doc/doxygen-extra.css
+HTML_EXTRA_STYLESHEET = doc/doxygen-extra.css
HTML_TIMESTAMP = NO