manual.mk 983 B

12345678910111213141516171819202122232425262728293031
  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. define MANUAL_GEN_LISTS
  10. $(Q)$(call MESSAGE,"Updating the manual lists...")
  11. $(Q)$(COMMON_CONFIG_ENV) \
  12. BR2_DEFCONFIG="" \
  13. TOPDIR=$(TOPDIR) \
  14. O=$(@D) \
  15. python -B $(TOPDIR)/support/scripts/gen-manual-lists.py
  16. endef
  17. MANUAL_POST_RSYNC_HOOKS += MANUAL_GEN_LISTS
  18. # Our list-generating script requires argparse
  19. define MANUAL_CHECK_LISTS_DEPS
  20. $(Q)if ! python -c "import argparse" >/dev/null 2>&1 ; then \
  21. echo "You need python with argparse on your host to generate" \
  22. "the list of packages in the manual"; \
  23. exit 1; \
  24. fi
  25. endef
  26. MANUAL_CHECK_DEPENDENCIES_HOOKS += MANUAL_CHECK_LISTS_DEPS
  27. $(eval $(call asciidoc-document))