2 # http://docbook.sourceforge.net/release/xsl/current/README
6 release-notes-0.7.1.inc \
7 release-notes-0.8.inc \
8 release-notes-0.9.inc \
9 release-notes-0.9.2.inc \
10 release-notes-1.0.1.inc \
11 release-notes-1.1.inc \
12 release-notes-1.1.1.inc \
13 release-notes-1.2.inc \
14 release-notes-1.2.1.inc \
15 release-notes-1.3.inc \
16 release-notes-1.3.1.inc \
17 release-notes-1.3.2.inc \
18 release-notes-1.4.inc \
19 release-notes-1.4.1.inc \
20 release-notes-1.4.2.inc \
21 release-notes-1.5.inc \
22 release-notes-1.6.inc \
23 release-notes-1.6.1.inc
28 configure-altimeter.png \
29 configure-altosui.png \
30 configure-groundstation.png \
33 device-selection.png \
35 easymega-v1.0-bottom.jpg \
36 easymega-v1.0-top.jpg \
50 micropeak-device-dialog.png \
52 micropeak-download.png \
53 micropeak-graph-configure.png \
55 micropeak-nofont.svg \
56 micropeak-preferences.png \
57 micropeak-raw-data.png \
58 micropeak-save-dialog.png \
59 micropeak-statistics.png \
60 MicroPeakUSB-2.0-inuse.jpg \
61 MicroPeakUSB-2.0.jpg \
66 telegps-configure.png \
67 telegps-graph-configure.png \
68 telegps-graph-graph.png \
69 telegps-graph-map.png \
70 telegps-graph-stats.png \
72 telegps-location.png \
74 telegps-preferences.png \
78 telegps-v1.0-top.jpg \
80 telemega-v1.0-top.jpg \
82 telemetrum-v1.1-thside.jpg \
83 telemetrum-v2.0-th.jpg \
88 TXT_FILES=altusmetrum.txt
102 using-am-products.inc \
103 updating-firmware.inc \
106 system-operation.inc \
108 flight-data-recording.inc \
114 RAW_FILES=$(TXT_FILES:.txt=.raw) $(INC_FILES:.inc=.raw)
118 telegps-quick-start.inc \
120 telegps-system-operation.inc \
121 telegps-application.inc \
124 telegps-updating-firmware.inc \
125 telegps-release-notes.inc
130 TELEGPS_RAW_FILES=$(TELEGPS_TXT_FILES:.txt=.raw) $(TELEGPS_INC_FILES:.inc=.raw)
132 MICROPEAK_TXT_FILES=\
137 MICROPEAK_RAW_FILES=$(MICROPEAK_TXT_FILES:.txt=.raw) $(MICROPEAK_INC_FILES:.inc=.raw)
140 easymega-outline.txt \
141 easymini-outline.txt \
142 telemega-outline.txt \
143 telemetrum-outline.txt \
146 OUTLINE_RAW_FILES=$(OUTLINE_TXT_FILES:.txt=.raw)
148 OUTLINE_PDF_FILES=$(OUTLINE_TXT_FILES:.txt=.pdf)
157 RELNOTES_PDF=$(RELNOTES_INC:.inc=.pdf)
158 RELNOTES_HTML=$(RELNOTES_INC:.inc=.html)
165 ONEFILE_RAW_FILES=$(ONEFILE_TXT_FILES:.txt=.raw)
166 ONEFILE_PDF_FILES=$(ONEFILE_TXT_FILES:.txt=.pdf)
168 HTML=altusmetrum.html micropeak.html telegps.html $(RELNOTES_HTML) $(ONEFILE_HTML_FILES)
171 altusmetrum-revhistory.html \
172 micropeak-revhistory.html \
173 telegps-revhistory.html
175 PDF=altusmetrum.pdf micropeak.pdf telegps.pdf $(RELNOTES_PDF) $(ONEFILE_PDF_FILES) \
179 HTML_STYLE=am-html.xsl
184 fonts/DejaVuSansMono-BoldOblique.ttf \
185 fonts/DejaVuSansMono-Bold.ttf \
186 fonts/DejaVuSansMono-Oblique.ttf \
187 fonts/DejaVuSansMono.ttf \
188 fonts/OpenSans-Light.ttf \
189 fonts/OpenSans-LightItalic.ttf \
190 fonts/OpenSans-Semibold.ttf \
191 fonts/OpenSans-SemiboldItalic.ttf
193 TEMPLATES_TMPL=titlepage.templates.tmpl
195 TEMPLATES_XSL=$(TEMPLATES_TMPL:.tmpl=.xsl)
197 PDF_CONFIG_FILES=$(FOP_STYLE) $(FOP_XCONF) $(TEMPLATES_XSL)
198 HTML_CONFIG_FILES=$(TEMPLATES_XSL)
200 DOC=$(HTML) $(HTML_REVHISTORY) $(PDF) $(IMAGES) $(STYLESHEET)
202 .SUFFIXES: .tmpl .xsl .inc .txt .raw .pdf .html
205 sed -e 's/^[ ]*//' -e 's/^\\//' $*.txt > $@
208 sed -e 's/^[ ]*//' -e 's/^\\//' $*.inc > $@
211 a2x --verbose -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(FOP_STYLE) --fop --fop-opts="-c $(FOP_XCONF)" $*.raw
214 a2x --verbose -a docinfo -f xhtml --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(HTML_STYLE) --stylesheet=$(STYLESHEET) $*.raw
217 xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.tmpl
223 altusmetrum-revhistory.html: altusmetrum.html
225 micropeak-revhistory.html: micropeak.html
227 telegps-revhistory.html: telegps.html
229 altusmetrum.pdf altusmetrum.html: altusmetrum-docinfo.xml $(RAW_FILES) $(RAW_INC) $(IMAGES)
231 telegps.html telegps.pdf: telegps-docinfo.xml $(TELEGPS_RAW_FILES) $(IMAGES)
233 micropeak.pdf micropeak.html: micropeak-docinfo.xml $(MICROPEAK_RAW_FILES) $(IMAGES)
237 publish: $(DOC) $(FONTS)
238 cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
239 mkdir -p /home/bdale/web/altusmetrum/AltOS/doc/fonts/
240 cp $(FONTS) /home/bdale/web/altusmetrum/AltOS/doc/fonts/
241 (cd /home/bdale/web/altusmetrum ; \
242 git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
243 git add /home/bdale/web/altusmetrum/AltOS/doc/fonts/* ; \
244 echo "update docs" | \
245 git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* /home/bdale/web/altusmetrum/AltOS/doc/fonts/* ; \
248 publish-keithp: $(DOC) $(FONTS)
249 scp -p $(DOC) keithp.com:~keithp/public_html/altos
250 scp -p $(FONTS) keithp.com:~keithp/public_html/altos/fonts
253 rm -f $(HTML) $(HTML_REVHISTORY) $(PDF) $(TEMPLATES_XSL) $(RAW_FILES) $(TELEGPS_RAW_FILES) $(MICROPEAK_RAW_FILES)
258 $(PDF): $(PDF_CONFIG_FILES)
259 $(HTML): $(HTML_CONFIG_FILES)