manual.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. ################################################################################
  2. #
  3. # The Buildroot manual
  4. #
  5. ################################################################################
  6. MANUAL_SOURCES = $(sort $(wildcard docs/manual/*.txt) $(wildcard docs/images/*))
  7. MANUAL_RESOURCES = $(TOPDIR)/docs/images
  8. # Our manual needs to generate lists
  9. # Packages included in BR2_EXTERNAL are not part of buildroot, so they
  10. # should not be included in the manual.
  11. define MANUAL_GEN_LISTS
  12. $(Q)$(call MESSAGE,"Updating the manual lists...")
  13. $(Q)$(COMMON_CONFIG_ENV) \
  14. BR2_DEFCONFIG="" \
  15. BR2_EXTERNAL=$(TOPDIR)/support/dummy-external \
  16. TOPDIR=$(TOPDIR) \
  17. O=$(@D) \
  18. python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
  19. endef
  20. MANUAL_POST_RSYNC_HOOKS += MANUAL_GEN_LISTS
  21. # Our list-generating script requires argparse
  22. define MANUAL_CHECK_LISTS_DEPS
  23. $(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
  24. echo "You need python with argparse on your host to generate" \
  25. "the list of packages in the manual"; \
  26. exit 1; \
  27. fi
  28. endef
  29. MANUAL_CHECK_DEPENDENCIES_HOOKS += MANUAL_CHECK_LISTS_DEPS
  30. $(eval $(call asciidoc-document))