mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
docs/manual: use the new hooks instead of gendoc rules
Also reorder a bit the definition of the variables, to more resemble a package. Yet a bit more... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Samuel Martin <s.martin49@gmail.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
5b34e68369
commit
05d11e19c5
@ -151,25 +151,28 @@ endef
|
|||||||
# The Buildroot manual
|
# The Buildroot manual
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Our manual needs to generate lists
|
MANUAL_SOURCES = $(sort $(wildcard docs/manual/*.txt) $(wildcard docs/images/*))
|
||||||
manual-prepare-sources: manual-update-lists
|
MANUAL_RESOURCES = $(TOPDIR)/docs/images
|
||||||
|
|
||||||
|
# Our manual needs to generate lists
|
||||||
# Packages included in BR2_EXTERNAL are not part of buildroot, so they
|
# Packages included in BR2_EXTERNAL are not part of buildroot, so they
|
||||||
# should not be included in the manual.
|
# should not be included in the manual.
|
||||||
.PHONY: manual-update-lists
|
define MANUAL_GEN_LISTS
|
||||||
manual-update-lists: manual-check-dependencies-lists $(BUILD_DIR)/docs/$(pkgname)
|
|
||||||
$(Q)$(call MESSAGE,"Updating the manual lists...")
|
$(Q)$(call MESSAGE,"Updating the manual lists...")
|
||||||
$(Q)BR2_DEFCONFIG="" TOPDIR=$(TOPDIR) O=$(BUILD_DIR)/docs/$(pkgname) \
|
$(Q)BR2_DEFCONFIG="" TOPDIR=$(TOPDIR) O=$(BUILD_DIR)/docs/$(pkgname) \
|
||||||
BR2_EXTERNAL=$(TOPDIR)/support/dummy-external \
|
BR2_EXTERNAL=$(TOPDIR)/support/dummy-external \
|
||||||
python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
|
python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
|
||||||
|
endef
|
||||||
|
MANUAL_POST_RSYNC_HOOKS += MANUAL_GEN_LISTS
|
||||||
|
|
||||||
manual-check-dependencies-lists:
|
# Our list-generating script requires argparse
|
||||||
|
define MANUAL_CHECK_LISTS_DEPS
|
||||||
$(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
|
$(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
|
||||||
echo "You need python with argparse on your host to generate" \
|
echo "You need python with argparse on your host to generate" \
|
||||||
"the list of packages in the manual"; \
|
"the list of packages in the manual"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
endef
|
||||||
|
MANUAL_CHECK_DEPENDENCIES_HOOKS += MANUAL_CHECK_LISTS_DEPS
|
||||||
|
|
||||||
MANUAL_SOURCES = $(sort $(wildcard docs/manual/*.txt) $(wildcard docs/images/*))
|
|
||||||
MANUAL_RESOURCES = $(TOPDIR)/docs/images
|
|
||||||
$(eval $(call GENDOC))
|
$(eval $(call GENDOC))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user