doc: Add release notes for 1.9.13
[fw/altos] / doc / Makefile.am
1 #
2 # Copyright © 2018 Keith Packard <keithp@keithp.com>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # General Public License for more details.
13 #
14
15 if FAKETIME
16 FAKETIME=TZ=UTC faketime -f '$(RELEASE_DATE) 00:00:00 i0'
17 endif
18
19 RELNOTES_INC=\
20         release-notes-1.9.13.inc \
21         release-notes-1.9.12.inc \
22         release-notes-1.9.11.inc \
23         release-notes-1.9.10.inc \
24         release-notes-1.9.9.inc \
25         release-notes-1.9.8.inc \
26         release-notes-1.9.7.inc \
27         release-notes-1.9.6.inc \
28         release-notes-1.9.5.inc \
29         release-notes-1.9.4.inc \
30         release-notes-1.9.3.inc \
31         release-notes-1.9.2.inc \
32         release-notes-1.9.1.inc \
33         release-notes-1.9.inc \
34         release-notes-1.8.7.inc \
35         release-notes-1.8.6.inc \
36         release-notes-1.8.5.inc \
37         release-notes-1.8.4.inc \
38         release-notes-1.8.3.inc \
39         release-notes-1.8.2.inc \
40         release-notes-1.8.1.inc \
41         release-notes-1.8.inc \
42         release-notes-1.7.inc \
43         release-notes-1.6.8.inc \
44         release-notes-1.6.5.inc \
45         release-notes-1.6.4.inc \
46         release-notes-1.6.3.inc \
47         release-notes-1.6.2.inc \
48         release-notes-1.6.1.inc \
49         release-notes-1.6.inc \
50         release-notes-1.5.inc \
51         release-notes-1.4.2.inc \
52         release-notes-1.4.1.inc \
53         release-notes-1.4.inc \
54         release-notes-1.3.2.inc \
55         release-notes-1.3.1.inc \
56         release-notes-1.3.inc \
57         release-notes-1.2.1.inc \
58         release-notes-1.2.inc \
59         release-notes-1.1.1.inc \
60         release-notes-1.1.inc \
61         release-notes-1.0.1.inc \
62         release-notes-0.9.2.inc \
63         release-notes-0.9.inc \
64         release-notes-0.8.inc \
65         release-notes-0.7.1.inc
66
67 IMAGES=\
68         altosui.png \
69         ascent.png \
70         configure-altimeter.png \
71         configure-altosui.png \
72         configure-groundstation.png \
73         configure-pyro.png \
74         descent.png \
75         device-selection.png \
76         easymega.svg \
77         easymega-v1.0-bottom.jpg \
78         easymega-v1.0-top.jpg \
79         easymini.svg \
80         easymini-top.jpg \
81         easytimer.jpg \
82         fire-igniter.png \
83         graph-configure.png \
84         graph-map.png \
85         graph.png \
86         graph-stats.png \
87         ignitor.png \
88         landed.png \
89         launch-pad.png \
90         load-maps.png \
91         micropeak-app.png \
92         micropeak-back.jpg \
93         micropeak-device-dialog.png \
94         micropeak-dime.jpg \
95         micropeak-download.png \
96         micropeak-graph-configure.png \
97         micropeak-graph.png \
98         micropeak-nofont.svg \
99         micropeak-preferences.png \
100         micropeak-raw-data.png \
101         micropeak-save-dialog.png \
102         micropeak-statistics.png \
103         MicroPeakUSB-2.0-inuse.jpg \
104         MicroPeakUSB-2.0.jpg \
105         monitor-idle.png \
106         scan-channels.png \
107         site-map.png \
108         table.png \
109         telegps-configure.png \
110         telegps-graph-configure.png \
111         telegps-graph-graph.png \
112         telegps-graph-map.png \
113         telegps-graph-stats.png \
114         telegps-info.png \
115         telegps-location.png \
116         telegps-map.png \
117         telegps-preferences.png \
118         telegps-scan.png \
119         telegps-status.png \
120         telegps-table.png \
121         telegps-v1.0-top.jpg \
122         telemega.svg \
123         telemega-v1.0-top.jpg \
124         telemetrum.svg \
125         telemetrum-v1.1-thside.jpg \
126         telemetrum-v2.0-th.jpg \
127         telemini-v1.svg \
128         telemini-v1-top.jpg \
129         telemini-v3.svg \
130         telemini-v3.0-top.jpg \
131         telemini-v3.0-bottom.jpg \
132         altusmetrum-oneline.svg \
133         telegps-oneline.svg \
134         micropeak-oneline.svg
135
136 TXT_FILES=altusmetrum.txt
137
138 COMMON_INC_FILES=\
139         config-device.inc \
140         config-ui.inc \
141         load-maps.inc \
142         aprs-operation.inc \
143         pyro-examples.inc \
144         handling.inc \
145         release-head.inc
146
147 INC_FILES=\
148         header.inc \
149         dedication.inc \
150         intro.inc \
151         getting-started.inc \
152         usage.inc \
153         telemetrum.inc \
154         telemini.inc \
155         easymini-device.inc \
156         telemega.inc \
157         easymega.inc \
158         easytimer.inc \
159         installation.inc \
160         using-am-products.inc \
161         updating-firmware.inc \
162         frequency-cal.inc \
163         altosui.inc \
164         altosdroid.inc \
165         system-operation.inc \
166         pyro-channels.inc \
167         flight-data-recording.inc \
168         specs.inc \
169         $(COMMON_INC_FILES) \
170         release-notes.inc \
171         $(RELNOTES_INC)
172
173 ADOC_FILES=$(TXT_FILES:.txt=.adoc) $(INC_FILES:.inc=.adoc)
174
175 MOTORTEST_TXT_FILES=motortest.txt
176
177 MOTORTEST_INC_FILES=\
178         motortest-configuration.inc \
179         motortest-installation.inc \
180         motortest-intro.inc \
181         motortest-operation.inc
182
183 MOTORTEST_ADOC_FILES=$(MOTORTEST_TXT_FILES:.txt=.adoc) $(MOTORTEST_INC_FILES:.inc=.adoc)
184
185 TELELAUNCH_TXT_FILES=telelaunch.txt
186
187 TELELAUNCH_INC_FILES=\
188         header.inc \
189         telelaunch-acknowledgements.inc \
190         telelaunch-intro.inc \
191         telelaunch-configuration.inc \
192         telelaunch-operation.inc \
193         telelaunch-specs.inc \
194         telelaunch-updating-firmware.inc \
195         telelaunch-cables.inc \
196         telelaunch-troubleshooting.inc 
197
198 TELELAUNCH_ADOC_FILES=$(TELELAUNCH_TXT_FILES:.txt=.adoc) $(TELELAUNCH_INC_FILES:.inc=.adoc)
199
200 TELEGPS_INC_FILES=\
201         telegps-dedication.inc \
202         telegps-quick-start.inc \
203         telegps-using.inc \
204         telegps-system-operation.inc \
205         telegps-application.inc \
206         telegps-specs.inc \
207         telegps-updating-firmware.inc \
208         telegps-release-notes.inc \
209         $(COMMON_INC_FILES)
210
211 TELEGPS_TXT_FILES=\
212         telegps.txt
213
214 TELEGPS_ADOC_FILES=$(TELEGPS_TXT_FILES:.txt=.adoc) $(TELEGPS_INC_FILES:.inc=.adoc)
215
216 MICROPEAK_TXT_FILES=\
217         micropeak.txt
218
219 MICROPEAK_INC_FILES=
220
221 MICROPEAK_ADOC_FILES=$(MICROPEAK_TXT_FILES:.txt=.adoc) $(MICROPEAK_INC_FILES:.inc=.adoc)
222
223 EASYMINI_TXT_FILES=\
224         easymini.txt
225
226 EASYMINI_INC_FILES=$(INC_FILES) easymini-release-notes.inc
227
228
229 EASYMINI_ADOC_FILES=$(EASYMINI_TXT_FILES:.txt=.adoc) $(EASYMINI_INC_FILES:.inc=.adoc)
230
231 OUTLINE_TXT_FILES=\
232         easymega-outline.txt \
233         easymini-outline.txt \
234         telemega-outline.txt \
235         telemetrum-outline.txt \
236         telemini-v1-outline.txt \
237         telemini-v3-outline.txt \
238         telegps-outline.txt
239
240 OUTLINE_ADOC_FILES=$(OUTLINE_TXT_FILES:.txt=.adoc)
241
242 OUTLINE_PDF_FILES=$(OUTLINE_TXT_FILES:.txt=.pdf)
243
244 SVG=\
245         easymini.svg \
246         telemega.svg \
247         telemetrum.svg \
248         telemini-v1.svg \
249         telemini-v3.svg \
250         easymega.svg
251
252 RELNOTES_HTML=$(RELNOTES_INC:.inc=.html)
253
254 ONEFILE_TXT_FILES=\
255         altos.txt \
256         companion.txt \
257         telemetry.txt \
258         map-loading.txt
259
260 ONEFILE_ADOC_FILES=$(ONEFILE_TXT_FILES:.txt=.adoc)
261 ONEFILE_PDF_FILES=$(ONEFILE_TXT_FILES:.txt=.pdf)
262 ONEFILE_HTML_FILES=$(ONEFILE_TXT_FILES:.txt=.html)
263
264 AM_HTML=am.html
265
266 PUBLISH_HTML=altusmetrum.html micropeak.html telegps.html easymini.html motortest.html telelaunch.html $(ONEFILE_HTML_FILES)
267
268 HTML=$(PUBLISH_HTML) $(RELNOTES_HTML)
269
270 if ASCIIDOCTOR_PDF
271 PDF=altusmetrum.pdf micropeak.pdf telegps.pdf easymini.pdf motortest.pdf telelaunch.pdf $(ONEFILE_PDF_FILES) \
272         $(OUTLINE_PDF_FILES)
273 endif
274
275 MAP_DOT_FILES=map-loading.dot
276 MAP_SVG_FILES=$(MAP_DOT_FILES:.dot=.svg)
277 STYLESHEET=am.css am-notoc.css
278
279 FONTS=\
280         fonts/DejaVuSansMono-BoldOblique.ttf \
281         fonts/DejaVuSansMono-Bold.ttf \
282         fonts/DejaVuSansMono-Oblique.ttf \
283         fonts/DejaVuSansMono.ttf \
284         fonts/OpenSans-Light.ttf \
285         fonts/OpenSans-LightItalic.ttf \
286         fonts/OpenSans-Regular.ttf \
287         fonts/OpenSans-Italic.ttf \
288         fonts/OpenSans-Semibold.ttf \
289         fonts/OpenSans-SemiboldItalic.ttf
290
291 ICONS=\
292         images/icons/caution.svg \
293         images/icons/important.svg \
294         images/icons/note.svg \
295         images/icons/tip.svg \
296         images/icons/warning.svg
297
298 PDF_CONFIG_FILES=altusmetrum-theme.yml
299 HTML_CONFIG_FILES=
300
301 PUBLISH_DOC=$(PUBLISH_HTML) $(PDF) $(IMAGES) $(MAP_SVG_FILES) $(STYLESHEET)
302
303 DOC=$(HTML) $(PDF) $(IMAGES) $(MAP_SVG_FILES) $(STYLESHEET)
304
305 SUFFIXES = .dot .svg .inc .txt .adoc .pdf .html
306
307 ATTRIBUTES=--attribute="revdate=$(DOC_DATE)" --attribute="version=$(VERSION)"
308
309 .dot.svg:
310         dot -Tsvg -o$@ $*.dot
311
312 .txt.adoc:
313         sed -e 's/^[    ]*//' -e 's/^\\//' $*.txt > $@
314
315 .inc.adoc:
316         sed -e 's/^[    ]*//' -e 's/^\\//' $*.inc > $@
317
318 .adoc.html:
319         asciidoctor $(ATTRIBUTES) -b html5 $*.adoc
320
321 .adoc.pdf:
322         asciidoctor-pdf $(ATTRIBUTES) $*.adoc
323
324 all:    $(HTML) $(PDF)
325
326 map-loading.adoc: $(MAP_SVG_FILES)
327
328 altusmetrum.pdf altusmetrum.html: $(ADOC_FILES) $(IMAGES)
329
330 motortest.pdf motortest.html: $(MOTORTEST_ADOC_FILES) $(IMAGES)
331
332 telelaunch.pdf telelaunch.html: $(TELELAUNCH_ADOC_FILES) $(IMAGES)
333
334 telegps.html telegps.pdf: $(TELEGPS_ADOC_FILES) $(IMAGES)
335
336 micropeak.pdf micropeak.html: $(MICROPEAK_ADOC_FILES) $(IMAGES)
337
338 easymini.pdf easymini.html: $(EASYMINI_ADOC_FILES) $(IMAGES)
339
340 telemini-v1-outline.pdf: telemini-v1-outline.txt telemini-v1.svg
341
342 telemini-v3-outline.pdf: telemini-v3-outline.txt telemini-v3.svg
343
344 install:        all
345
346 WEB_ROOT=/home/bdale/web/
347
348 publish:        $(PUBLISH_DOC) $(FONTS) $(ICONS)
349         cp -a $(PUBLISH_DOC) $(WEB_ROOT)/altusmetrum/AltOS/doc/
350         mkdir -p $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/
351         cp $(FONTS) $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/
352         mkdir -p $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/
353         cp $(ICONS) $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/
354         (cd $(WEB_ROOT)/altusmetrum ; \
355          git add $(WEB_ROOT)/altusmetrum/AltOS/doc/* ; \
356          git add $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/* ; \
357          git add $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/* ;\
358          echo "update docs" | \
359          git commit -F - $(WEB_ROOT)/altusmetrum/AltOS/doc/* $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/* $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons ; \
360          git push)
361
362 publish-keithp: am.html $(DOC) $(FONTS)
363         ssh keithp.com 'mkdir -p ~keithp/public_html/altos/fonts ~keithp/public_html/altos/images/icons'
364         scp -p am.html $(DOC) keithp.com:~keithp/public_html/altos
365         scp -p $(FONTS) keithp.com:~keithp/public_html/altos/fonts
366         scp -p $(ICONS) keithp.com:~keithp/public_html/altos/images/icons
367
368 clean:
369         rm -f am.html $(HTML) $(PDF) $(ADOC_FILES) $(TELEGPS_ADOC_FILES) $(MICROPEAK_ADOC_FILES) $(TELELAUNCH_ADOC_FILES) $(MOTORTEST_ADOC_FILES)
370
371 distclean: clean
372         rm -f $(HTML) $(PDF)
373
374 $(PDF): $(PDF_CONFIG_FILES)
375 $(HTML): $(HTML_CONFIG_FILES)
376
377 am.html: Makefile make-am-html $(HTML)
378         sh ./make-am-html $(HTML) > $@