From d56adac4e36a9ecde1ecb5cd5b1ba6715aa261a0 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Thu, 22 Aug 2024 18:16:45 +0300 Subject: [PATCH] [#1945] fix building docs from tarball - Move tools/* EXTRA_DISTs inside tools/Makefile.am because that's where they belong. - Add check-messages.py to EXTRA_DIST in tools/Makefile.am to allow someone who downloads the tarball to regenerate the entire message documentation just like before. - Add debug-messages.rst and kea-messages.rst to the tarball so that they are not forced to use check-messages.py to regenerate message documentation. - Add singlehtml to all rule. It is the only type of docs that are not built by default. --- Makefile.am | 5 +---- doc/sphinx/Makefile.am | 10 ++++++++-- tools/Makefile.am | 5 +++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8f5b85bf69..bf891b487d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -180,11 +180,8 @@ install-exec-hook: mkdir -p $(DESTDIR)${localstatedir}/lib/${PACKAGE_NAME} mkdir -p $(DESTDIR)${runstatedir}/${PACKAGE_NAME} -EXTRA_DIST = tools/path_replacer.sh -EXTRA_DIST += tools/mk_cfgrpt.sh - #### include external sources in the distributed tarball: -EXTRA_DIST += ext/coroutine/coroutine.hpp +EXTRA_DIST = ext/coroutine/coroutine.hpp CLEANFILES = $(abs_top_builddir)/logger_lockfile diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am index d60332974f..e7f9d8ea50 100644 --- a/doc/sphinx/Makefile.am +++ b/doc/sphinx/Makefile.am @@ -22,6 +22,9 @@ rst_arm_sources = rst_arm_sources += index.rst rst_arm_sources += manpages.rst rst_arm_sources += umls.rst +rst_arm_sources += debug-messages.rst +rst_arm_sources += kea-messages.rst + include arm/rst_arm_sources.mk EXTRA_DIST += arm/rst_arm_sources.mk @@ -61,9 +64,9 @@ api_files = include $(top_srcdir)/src/share/api/api_files.mk if HAVE_PDFLATEX -all: debug-messages.rst kea-messages.rst html mans pdf text +all: debug-messages.rst kea-messages.rst html mans pdf singlehtml text else -all: debug-messages.rst kea-messages.rst html mans text +all: debug-messages.rst kea-messages.rst html mans singlehtml text endif # build the list of message files @@ -85,6 +88,9 @@ $(srcdir)/kea-messages.rst: mes2doc.py api-files.txt: $(top_srcdir)/src/share/api/api_files.mk @sed 's;api_files .*)/;;' $< > $@ +EXTRA_DIST += debug-messages.rst +EXTRA_DIST += kea-messages.rst + # some tools do not use this makefile but still need generate files. EXTRA_DIST += mes-files.txt api-files.txt diff --git a/tools/Makefile.am b/tools/Makefile.am index 6b9a992735..2766f42494 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -6,5 +6,10 @@ if USE_STATIC_LINK AM_LDFLAGS = -static endif +EXTRA_DIST = +EXTRA_DIST += check-messages.py +EXTRA_DIST += mk_cfgrpt.sh +EXTRA_DIST += path_replacer.sh + CLEANFILES = *.gcno *.gcda DISTCLEANFILES = path_replacer.sh