From 890b3c34a4566003fed8e02ab2ba07cbba5fac37 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 27 May 2016 10:10:00 +1000 Subject: [PATCH] doc: ship the doc sources even when not building with docs No effect so far because the dist-hook prevents us from making a tarball without the sources anyway. But for correctness split the two up. Signed-off-by: Peter Hutterer --- doc/Makefile.am | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 1e501a82..c7255d41 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -3,10 +3,6 @@ EXTRA_DIST = \ touchpad-tap-state-machine.svg \ touchpad-softbutton-state-machine.svg -if BUILD_DOCS - -noinst_DATA = html/index.html - header_files = \ $(top_srcdir)/src/libinput.h \ $(top_srcdir)/README.txt \ @@ -69,6 +65,10 @@ style_files = \ style/customdoxygen.css \ style/bootstrap.css +if BUILD_DOCS + +noinst_DATA = html/index.html + html/index.html: libinput.doxygen $(header_files) $(diagram_files) $(style_files) $(AM_V_GEN)(cat $<; \ echo "INPUT = $(header_files)"; \ @@ -79,11 +79,12 @@ clean-local: doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null) EXTRA_DIST += $(builddir)/html/index.html \ - $(doc_src) \ - $(diagram_files) \ + $(doc_src) +endif + +EXTRA_DIST += $(diagram_files) \ $(header_files) \ $(style_files) -endif # make sure doc was built before running dist dist-hook: