mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 20:30:06 +01:00
Only add files to EXTRA_DIST, to avoid having a full copy of doc/html as doc/html/html in the distributed tarball. Signed-off-by: Stephen Kitt <skitt@debian.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
25 lines
658 B
Makefile
25 lines
658 B
Makefile
if HAVE_DOXYGEN
|
|
all-local: doxygen
|
|
|
|
doxygen: libevdev.doxygen
|
|
doxygen $<
|
|
|
|
clean-local:
|
|
rm -rf html
|
|
|
|
.PHONY: doxygen
|
|
|
|
doc_src= $(shell find html -type f -printf "html/%P\n")
|
|
EXTRA_DIST = $(doc_src) libevdev.doxygen libevdev.css
|
|
endif
|
|
|
|
dist_noinst_DATA = libevdev.doxygen.in
|
|
|
|
# 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 )
|