X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fdocs%2Fmanual%2Fmanual.mk;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fdocs%2Fmanual%2Fmanual.mk;h=ad9bd903cff4ea6270c38a7425c4866214d27c65;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/docs/manual/manual.mk b/cirros-testvm/src-cirros/buildroot-2015.05/docs/manual/manual.mk new file mode 100644 index 0000000..ad9bd90 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/docs/manual/manual.mk @@ -0,0 +1,34 @@ +################################################################################ +# +# 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)$(COMMON_CONFIG_ENV) \ + BR2_DEFCONFIG="" \ + BR2_EXTERNAL=$(TOPDIR)/support/dummy-external \ + TOPDIR=$(TOPDIR) \ + O=$(@D) \ + 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))