[PATCH evemu] Check for man pages to exist before making a tarball

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 14 20:50:25 PDT 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 tools/Makefile.am | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tools/Makefile.am b/tools/Makefile.am
index 1559f90..9195595 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -42,3 +42,12 @@ dist_man_MANS = $(man_pages)
 CLEANFILES = $(dist_man_MANS)
 MAINTAINERCLEANFILES = $(man_pages) *.xml
 endif
+
+# make sure manpages were built before running dist
+dist-hook:
+	@test -f $(distdir)/evemu-describe.1 || (\
+		echo "******************************************************" && \
+		echo "Couldn't find man pages, refusing make dist." && \
+		echo "Install xmlto/asciidoc to build man pages for tarball." && \
+		echo "******************************************************" && \
+		test )
-- 
2.4.3



More information about the Input-tools mailing list