2 # http://docbook.sourceforge.net/release/xsl/current/README
6 release-notes-0.7.1.html \
7 release-notes-0.8.html \
8 release-notes-0.9.html \
9 release-notes-0.9.2.html \
10 release-notes-1.0.1.html \
11 release-notes-1.1.html \
12 release-notes-1.1.1.html \
13 release-notes-1.2.html \
14 release-notes-1.2.1.html \
15 release-notes-1.3.html \
16 release-notes-1.3.1.html \
17 release-notes-1.3.2.html \
18 release-notes-1.4.html \
19 release-notes-1.4.1.html \
20 release-notes-1.5.html \
21 release-notes-1.6.html \
22 release-notes-1.6.1.html
27 configure-altimeter.png \
28 configure-altosui.png \
29 configure-groundstation.png \
32 device-selection.png \
44 micropeak-device-dialog.png \
46 micropeak-download.png \
47 micropeak-graph-configure.png \
49 micropeak-preferences.png \
50 micropeak-raw-data.png \
51 micropeak-save-dialog.png \
52 micropeak-statistics.png \
53 MicroPeakUSB-2.0-inuse.jpg \
54 MicroPeakUSB-2.0.jpg \
59 telemega-v1.0-top.jpg \
60 telemetrum-v1.1-thside.jpg \
64 TXT_FILES=altusmetrum.txt
79 system-operation.inc \
81 flight-data-recording.inc \
85 RAW_FILES=$(TXT_FILES:.txt=.raw)
87 RAW_INC=$(INC_FILES:.inc=.raw)
89 AD_PDF=$(TXT_FILES:.txt=.pdf)
98 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
99 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html telegps.html $(RELNOTES)
100 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf telegps.pdf \
101 telemetrum-outline.pdf telemega-outline.pdf easymini-outline.pdf easymega-outline.pdf $(AD_PDF)
102 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
105 TEMPLATES=titlepage.templates.xsl
107 IMAGES=$(PICTURES) $(SVG)
108 DOC=$(HTML) $(PDF) $(IMAGES)
110 .SUFFIXES: .inc .txt .raw .pdf .html
112 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
115 sed -e 's/@@VERSION@@/$(VERSION)/' -e 's/@@DATE@@/$(DATE)/' -e 's/^[ ]*//' -e 's/^\\//' $*.txt > $@
118 sed -e 's/@@VERSION@@/$(VERSION)/' -e 's/@@DATE@@/$(DATE)/' -e 's/^[ ]*//' -e 's/^\\//' $*.inc > $@
121 a2x --verbose -k -d book -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file am-fo.xsl --fop --fop-opts="-c fop.xconf" $*.raw
124 a2x --verbose -k -d book -a docinfo -f xhtml --xsltproc-opts "--stringparam toc.section.depth 2" --stylesheet=am.css $*.raw
127 xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
130 xmlto -p '-c $(FOPCFG)' --searchpath `pwd` -x $(FOSTYLE) --with-fop pdf $*.xsl
133 xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.xml
137 altusmetrum.pdf: altusmetrum-docinfo.xml $(RAW_FILES) $(RAW_INC)
142 cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
143 (cd /home/bdale/web/altusmetrum ; \
144 git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
145 echo "update docs" | \
146 git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
150 rm -f $(HTML) $(PDF) $(TEMPLATES)
155 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
156 altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
158 telegps.html: $(RELNOTES_XSL) $(IMAGES)
159 telegps.pdf: $(RELNOTES_XSL) $(IMAGES)
161 $(PDF): $(FOSTYLE) $(TEMPLATES) $(FOPCFG)
163 indent: altusmetrum.xsl
164 xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
167 (echo '<fop version="1.0">'; echo ' <base>'"`pwd`"'</base>'; echo '</fop>') > $@