2013-06-22 19:13:36 +10:00
|
|
|
if HAVE_DOXYGEN
|
|
|
|
|
all-local: doxygen
|
|
|
|
|
|
|
|
|
|
doxygen: libevdev.doxygen
|
2013-11-24 08:02:27 -05:00
|
|
|
$(AM_V_GEN)$(DOXYGEN) $<
|
2013-06-22 19:13:36 +10:00
|
|
|
|
|
|
|
|
clean-local:
|
2013-11-24 08:02:27 -05:00
|
|
|
$(AM_V_at)rm -rf html
|
2013-06-22 19:13:36 +10:00
|
|
|
|
|
|
|
|
.PHONY: doxygen
|
|
|
|
|
|
2013-09-22 19:34:24 +02:00
|
|
|
doc_src= $(shell find html -type f -printf "html/%P\n")
|
2013-11-24 08:02:25 -05:00
|
|
|
EXTRA_DIST = $(doc_src) libevdev.css
|
2013-06-22 19:13:36 +10:00
|
|
|
endif
|
|
|
|
|
|
2013-08-27 11:42:48 +10:00
|
|
|
# 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 )
|