doc: Update micropeak docs to include lots of pictures
[fw/altos] / doc / Makefile
index f7ecf06944bcee8668fe4b879523a7e80f0b5bad..3079c1480c58be42c57183f61caedbf1a3dd0ba2 100644 (file)
@@ -52,11 +52,12 @@ HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html $(
 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf
 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
 FOSTYLE=xorg-fo.xsl
+TEMPLATES=titlepage.templates.xsl
 PDFSTYLE=
 IMAGES=$(PICTURES) $(SVG)
 DOC=$(HTML) $(PDF) $(PICTURES)
 
-.SUFFIXES: .xsl .html .pdf
+.SUFFIXES: .xml .xsl .html .pdf
 
 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
 
@@ -66,6 +67,9 @@ XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
 .xsl.pdf:
        xmlto -x $(FOSTYLE) --with-fop pdf $*.xsl
 
+.xml.xsl:
+       xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.xml
+
 all:   $(HTML) $(PDF)
 
 install:       all
@@ -89,6 +93,8 @@ altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
 
 $(PDF): $(FOSTYLE)
 
+micropeak.pdf:  $(TEMPLATES)
+
 indent:                altusmetrum.xsl
        xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new