mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 19:20:05 +01:00
26 lines
720 B
Makefile
26 lines
720 B
Makefile
if HAVE_DOXYGEN
|
|
|
|
noinst_DATA = html/index.html
|
|
|
|
header_files = \
|
|
$(top_srcdir)/src/libinput.h
|
|
|
|
html/index.html: libinput.doxygen $(header_files)
|
|
$(AM_V_GEN)$(DOXYGEN) $<
|
|
|
|
clean-local:
|
|
$(AM_V_at)rm -rf html
|
|
|
|
doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null)
|
|
EXTRA_DIST = $(builddir)/html/index.html $(doc_src)
|
|
|
|
endif
|
|
|
|
# make sure doc was built before running dist
|
|
dist-hook:
|
|
@test -f $(distdir)/html/index.html || (\
|
|
echo "******************************************************" && \
|
|
echo "Couldn't find documentation files, refusing make dist." && \
|
|
echo "Install doxygen to build documentation for tarball." && \
|
|
echo "******************************************************" && \
|
|
test )
|