doc/counter_list: makefile - generate html with full section numbers
authorDaniel-Constantin Mierla <miconda@gmail.com>
Sun, 4 Jun 2017 13:36:44 +0000 (15:36 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Sun, 4 Jun 2017 14:28:18 +0000 (16:28 +0200)
doc/tutorials/counter_list/docbook/Makefile

index 1bf8952..c4eefe3 100644 (file)
@@ -2,6 +2,14 @@
 docs = counter_list.xml
 docbook_dir = ../../../docbook
 # 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
+
+# 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