if ENABLE_DOCS
if HAVE_DOXYGEN
-doc: doc/stamp-doxygen
+doxygen_input = \
+ $(top_srcdir)/README.md \
+ $(top_srcdir)/doc/quick-guide.md \
+ $(top_srcdir)/doc/compat.md \
+ $(top_srcdir)/xkbcommon/xkbcommon.h \
+ $(top_srcdir)/xkbcommon/xkbcommon-names.h \
+ $(top_srcdir)/xkbcommon/xkbcommon-x11.h \
+ $(top_srcdir)/xkbcommon/xkbcommon-compose.h
+
+doc/html: doc/Doxyfile $(doxygen_input)
+ $(AM_V_GEN)(\
+ cat $<; \
+ echo "INPUT = $(doxygen_input)"; \
+ echo "OUTPUT_DIRECTORY = $(abs_top_builddir)/doc"; \
+ ) | $(DOXYGEN) -
+clean-doxygen:
+ rm -rf doc/html
+
+doc: doc/html
clean-doc: clean-doxygen
all-local:: doc
clean-local:: clean-doc
-doc/stamp-doxygen: $(top_srcdir)/xkbcommon/*.h
- $(AM_V_GEN)(cd $(top_srcdir) && $(DOXYGEN) $(abs_top_builddir)/doc/Doxyfile)
- touch $@
-
-clean-doxygen:
- rm -rf doc/html doc/stamp-doxygen
-
install-data-local:: doc
$(MKDIR_P) $(DESTDIR)$(htmldir)
$(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir)
PROJECT_NUMBER = @PACKAGE_VERSION@
-OUTPUT_DIRECTORY = @abs_top_builddir@/doc
-
BRIEF_MEMBER_DESC = NO
JAVADOC_AUTOBRIEF = YES
WARN_IF_UNDOCUMENTED = NO
-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 \
+INPUT = @INPUT@
FILE_PATTERNS = *.c \
*.h
IGNORE_PREFIX = xkb_ \
XKB_
-HTML_EXTRA_STYLESHEET = doc/doxygen-extra.css
+HTML_EXTRA_STYLESHEET = @abs_top_srcdir@/doc/doxygen-extra.css
HTML_TIMESTAMP = NO