[Buildroot] [PATCH 2/6] manual: add package-list.txt generation support
Samuel Martin
s.martin49 at gmail.com
Wed Nov 28 21:40:28 UTC 2012
Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
---
docs/manual/manual.mk | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk
index aa20534..c4a21b2 100644
--- a/docs/manual/manual.mk
+++ b/docs/manual/manual.mk
@@ -24,6 +24,26 @@ $$(O)/docs/$(1)/$(1).$(4): docs/$(1)/$(1).txt $$($(call UPPERCASE,$(1))_SOURCES)
-D $$(@D) $$<
endef
+$(TOPDIR)/docs/manual/package-list.txt:
+ @echo -en "\
+ //\n\
+ // Autogenerated file\n\
+ //\n\n\
+ [[package-list]]\n\
+ Available packages\n\
+ ------------------\n\n\
+ // docs/manaual/pkg-list.txt is generated using the following command:\n\
+ // $ git grep -E '\\((autotools|cmake|generic)-package\\)' package/ | \\\n\
+ // cut -d':' -f1 | grep '\\.mk$$' | \\\n\
+ // sed -e 's;.*\\?/\\(.*\\?\\).mk;* \\1;' | \\\n\
+ // sort > docs/manual/pkg-list.txt\n\n\
+ " > $@
+ grep -rHE --color=never '\((autotools|cmake|generic)-package\)' \
+ $(TOPDIR)/package/ | \
+ cut -d':' -f1 | grep '\.mk$$' | \
+ sed -e 's;.*\?/\(.*\?\).mk;* \1;' | \
+ sort >> $@
+
################################################################################
# GENDOC -- generates the make targets needed to build asciidoc documentation.
#
--
1.8.0.1
More information about the buildroot
mailing list