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