aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-10-03 19:01:39 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-10-12 07:46:26 +0200
commit1750f31b1f1f7c4300a427e1dcebfc379c411d7a (patch)
tree87fab79fd9c3d9396673b7ad506fd8374e86c381 /docs
parent552e0da90c3fc824da33520d3878046bac66d4b1 (diff)
downloadbuildroot-1750f31b1f1f7c4300a427e1dcebfc379c411d7a.tar.gz
buildroot-1750f31b1f1f7c4300a427e1dcebfc379c411d7a.tar.bz2
docs/manual: copying the manual sources is a common action
Move the creation of $(BUILD_DIR)/manual and the rsyncing of the sources into GENDOC. This is is needed so that GENDOC can be easily used to generate another document, without requiring that document to duplicate the copying rules. 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: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/manual.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk
index 69113e350a..dd6f0ea015 100644
--- a/docs/manual/manual.mk
+++ b/docs/manual/manual.mk
@@ -1,10 +1,3 @@
-$(BUILD_DIR)/docs/$(pkgname):
- $(Q)mkdir -p $@
-
-manual-rsync: $(BUILD_DIR)/docs/$(pkgname)
- $(Q)$(call MESSAGE,"Preparing the manual sources...")
- $(Q)rsync -a docs/$(pkgname)/ $(BUILD_DIR)/docs/$(pkgname)
-
# Packages included in BR2_EXTERNAL are not part of buildroot, so they
# should not be included in the manual.
manual-update-lists: manual-check-dependencies-lists $(BUILD_DIR)/docs/$(pkgname)
@@ -127,6 +120,13 @@ endef
# The variable <DOCUMENT_NAME>_SOURCES defines the dependencies.
################################################################################
define GENDOC
+$$(BUILD_DIR)/docs/$(pkgname):
+ $$(Q)mkdir -p $$@
+
+$(pkgname)-rsync: $$(BUILD_DIR)/docs/$(pkgname)
+ $$(Q)$$(call MESSAGE,"Preparing the $(pkgname) sources...")
+ $$(Q)rsync -a docs/$(pkgname)/ $$^
+
$(call GENDOC_INNER,$(pkgname),xhtml,html,html,HTML,\
--xsltproc-opts "--stringparam toc.section.depth 1")
$(call GENDOC_INNER,$(pkgname),chunked,split-html,chunked,split HTML,\