+RELNOTES_XSL=$(RELNOTES:.html=.xsl)
+HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html telegps.html $(RELNOTES)
+PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf telegps.pdf \
+ telemetrum-outline.pdf telemega-outline.pdf easymini-outline.pdf easymega-outline.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) $(IMAGES)
+
+.SUFFIXES: .xml .xsl .html .pdf
+
+XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
+
+.xsl.html:
+ xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
+
+.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
+
+publish: $(DOC)
+ cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
+ (cd /home/bdale/web/altusmetrum ; \
+ git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
+ echo "update docs" | \
+ git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
+ git push)