mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 14:40:07 +01:00
Previous find command wouldn't actually list the generated documentation files, so they'd be missing in the tarball. ...and add a dist-hook to make sure this won't happen during release. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
25 lines
660 B
Makefile
25 lines
660 B
Makefile
if HAVE_DOXYGEN
|
|
all-local: doxygen
|
|
|
|
doxygen: libevdev.doxygen
|
|
doxygen $<
|
|
|
|
clean-local:
|
|
rm -rf html
|
|
|
|
.PHONY: doxygen
|
|
|
|
doc_src= $(shell find html -name "*" -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 )
|