doc: Add title page image to altusmetrum.pdf
[fw/altos] / doc / Makefile
index 80310869a4ef4d0b29032999d2328c98904e8401..83731fbe8f1998378f96c53472da2a76e3e8870c 100644 (file)
@@ -13,7 +13,8 @@ RELNOTES=\
        release-notes-1.2.html \
        release-notes-1.2.1.html \
        release-notes-1.3.html \
-       release-notes-1.3.1.html
+       release-notes-1.3.1.html \
+       release-notes-1.3.2.html
 
 PICTURES=\
        altosui.png \
@@ -51,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
 
@@ -65,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
@@ -78,7 +83,7 @@ publish:      $(DOC)
         git push)
 
 clean:
-       rm -f $(HTML) $(PDF)
+       rm -f $(HTML) $(PDF) $(TEMPLATES)
 
 distclean:
        rm -f $(HTML) $(PDF)
@@ -86,7 +91,7 @@ distclean:
 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
 altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
 
-$(PDF): $(FOSTYLE)
+$(PDF): $(FOSTYLE) $(TEMPLATES)
 
 indent:                altusmetrum.xsl
        xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new