mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-28 07:53:32 +08:00
3d2a49f78f
Currently, it is not possible to use $(@D) in documents' hooks, because there is no actual target file for the copying rule. So, use the same mechanism as for generic-package. We do not touch the target file, so it is easy to regenerate the manual without calling the -clean rule first. 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>
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# The Buildroot manual
|
|
#
|
|
################################################################################
|
|
|
|
MANUAL_SOURCES = $(sort $(wildcard docs/manual/*.txt) $(wildcard docs/images/*))
|
|
MANUAL_RESOURCES = $(TOPDIR)/docs/images
|
|
|
|
# Our manual needs to generate lists
|
|
# Packages included in BR2_EXTERNAL are not part of buildroot, so they
|
|
# should not be included in the manual.
|
|
define MANUAL_GEN_LISTS
|
|
$(Q)$(call MESSAGE,"Updating the manual lists...")
|
|
$(Q)BR2_DEFCONFIG="" TOPDIR=$(TOPDIR) O=$(@D) \
|
|
BR2_EXTERNAL=$(TOPDIR)/support/dummy-external \
|
|
python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
|
|
endef
|
|
MANUAL_POST_RSYNC_HOOKS += MANUAL_GEN_LISTS
|
|
|
|
# Our list-generating script requires argparse
|
|
define MANUAL_CHECK_LISTS_DEPS
|
|
$(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
|
|
echo "You need python with argparse on your host to generate" \
|
|
"the list of packages in the manual"; \
|
|
exit 1; \
|
|
fi
|
|
endef
|
|
MANUAL_CHECK_DEPENDENCIES_HOOKS += MANUAL_CHECK_LISTS_DEPS
|
|
|
|
$(eval $(call asciidoc-document))
|