tizen 2.4 release
[framework/uifw/libevdev.git] / doc / Makefile.am
1 man3_MANS = libevdev.man
2
3 if HAVE_DOXYGEN
4
5 noinst_DATA = html/index.html
6
7 header_files = \
8         $(top_srcdir)/libevdev/libevdev.h \
9         $(top_srcdir)/libevdev/libevdev-uinput.h
10
11 html/index.html: libevdev.doxygen $(header_files)
12         $(AM_V_GEN)$(DOXYGEN) $<
13
14 clean-local:
15         $(AM_V_at)rm -rf html
16
17 doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null)
18 EXTRA_DIST = html/index.html $(doc_src) libevdev.css
19
20 endif
21
22 # make sure doc was built before running dist
23 dist-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 )