浏览代码

doc/cfg_list: makefile - generate html with full section numbers

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
c43fa2c568
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      doc/tutorials/cfg_list/docbook/Makefile

+ 9 - 1
doc/tutorials/cfg_list/docbook/Makefile

@@ -2,6 +2,14 @@
 docs = cfg_var_list.xml
 docs = cfg_var_list.xml
 docbook_dir = ../../../docbook
 docbook_dir = ../../../docbook
 # no subsection listed in the main TOC
 # no subsection listed in the main TOC
-xsltproc_flags+=--stringparam  toc.section.depth 0
+xsltproc_flags+= --stringparam toc.section.depth 0
+xsltproc_flags+= --stringparam section.autolabel 1
+xsltproc_flags+= --stringparam section.label.includes.component.label 1
 
 
 include $(docbook_dir)/Makefile
 include $(docbook_dir)/Makefile
+
+# updates to the html generated file
+.PHONY: html-update
+html-update:
+	# strip first to lines (xml and doctype constraints)
+	sed -i '1,2d' $(basename $(docs)).html