summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-08-27 11:42:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-08-29 11:13:49 +1000
commit144b731202e94520e5c77e552620be0e9d98ea43 (patch)
tree054c769e957f770327cde0462a0a01af0d6a4f97 /doc
parentb20becc9426f74201041f4b7d77113d3c7d9033e (diff)
downloadlibevdev-144b731202e94520e5c77e552620be0e9d98ea43.tar.gz
doc: actually package generated documentation
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index c8fd05e..3fbd0ed 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -9,8 +9,17 @@ clean-local:
.PHONY: doxygen
-doc_src= $(shell find . -name "html" -printf "%P\n")
+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 )