1man3_MANS = libevdev.man 2 3if HAVE_DOXYGEN 4 5noinst_DATA = html/index.html 6 7header_files = \ 8 $(top_srcdir)/libevdev/libevdev.h \ 9 $(top_srcdir)/libevdev/libevdev-uinput.h 10 11html/index.html: libevdev.doxygen $(header_files) 12 $(AM_V_GEN)$(DOXYGEN) $< 13 14clean-local: 15 $(AM_V_at)rm -rf html 16 17doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null) 18EXTRA_DIST = html/index.html $(doc_src) libevdev.css 19 20endif 21 22# make sure doc was built before running dist 23dist-hook: 24 @test -f $(distdir)/html/index.html || (\ 25 echo "******************************************************" && \ 26 echo "Couldn't find documentation files, refusing make dist." && \ 27 echo "Install doxygen to build documentation for tarball." && \ 28 echo "******************************************************" && \ 29 test ) 30