summaryrefslogtreecommitdiff
blob: 1c66f724706d9d16bbc1205597ab38684231f2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
XSLTPROC = xsltproc

XSL-NS-SS = http://docbook.sourceforge.net/release/xsl-ns/current/

generate: main.docbook
	$(XSLTPROC) \
		--xinclude \
		--stringparam base.dir public/ \
		--stringparam chunk.toc chunk.toc \
		--stringparam section.autolabel 1 \
		--stringparam section.label.includes.component.label 1 \
		--stringparam toc.section.depth 1 \
		--stringparam collect.xref.targets "yes" \
		--stringparam targets.filename "$(patsubst %.xhtml,%.olinkdb,$@)" \
		$(XSL-NS-SS)/xhtml-1_1/chunktoc.xsl \
		$<

chunk.toc.new:
	$(XSLTPROC) \
		--output $@ \
		--xinclude \
		--stringparam chunk.section.depth 8 \
		--stringparam chunk.first.sections 1 \
		--stringparam use.id.as.filename 1 \
		$(XSL-NS-SS)/xhtml-1_1/maketoc.xsl \
		main.docbook

clean:
	rm -f *~ *.olinkdb
	find public -name '*.html' -delete

.PHONY: generate chunk.toc.new clean