doc: update copyright year assertions
[fw/altos] / Makefile.am
1 SUBDIRS=ao-tools src doc icon altoslib libaltos altosuilib altosui micropeak ao-utils altosdroid telegps map-server
2
3 EXTRA_DIST = ChangeLog
4
5 MAINTAINERCLEANFILES = ChangeLog
6
7 .PHONY: ChangeLog
8
9 ChangeLog:
10         (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || \
11         (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
12
13 dist-hook: ChangeLog
14
15 if FATINSTALL
16 fat-install: fat
17         cd altosui && $(MAKE) fat-install
18         cd telegps && $(MAKE) fat-install
19         cd micropeak && $(MAKE) fat-install
20 endif
21
22 fat:
23         cd src && $(MAKE) all
24         cd doc && $(MAKE) all
25         cd libaltos && $(MAKE) fat
26         cd altoslib && $(MAKE) all
27         cd altosuilib && $(MAKE) all
28         cd icon && $(MAKE) fat
29         cd altosui && $(MAKE) fat
30         cd micropeak && $(MAKE) fat
31         cd telegps && $(MAKE) fat
32
33 fat_linux = \
34         altosui/Altos-Linux-$(VERSION).sh altosui/Altos-Linux-$(VERSION).tar.bz2 \
35         telegps/TeleGPS-Linux-$(VERSION).sh telegps/TeleGPS-Linux-$(VERSION).tar.bz2 \
36         micropeak/MicroPeak-Linux-$(VERSION).sh micropeak/MicroPeak-Linux-$(VERSION).tar.bz2
37
38 fat_mac = \
39         altosui/Altos-Mac-$(VERSION).dmg \
40         telegps/TeleGPS-Mac-$(VERSION).dmg \
41         micropeak/MicroPeak-Mac-$(VERSION).dmg
42
43 fat_windows = \
44         altosui/Altos-Windows-$(VERSION_DASH).exe \
45         telegps/TeleGPS-Windows-$(VERSION_DASH).exe \
46         micropeak/MicroPeak-Windows-$(VERSION_DASH).exe
47
48 fat_android = \
49         altosdroid/bin/AltosDroid-debug.apk \
50         altosdroid/bin/AltosDroid-release.apk
51
52 fat_altos = \
53         src/easymega-v1.0/easymega-v1.0-$(VERSION).ihx \
54         src/easymega-v2.0/easymega-v2.0-$(VERSION).ihx \
55         src/easymini-v1.0/easymini-v1.0-$(VERSION).ihx \
56         src/easymotor-v2/easymotor-v2-$(VERSION).ihx \
57         src/easytimer-v1/easytimer-v1-$(VERSION).ihx \
58         src/telebt-v3.0/telebt-v3.0-$(VERSION).ihx \
59         src/telebt-v4.0/telebt-v4.0-$(VERSION).ihx \
60         src/teledongle-v3.0/teledongle-v3.0-$(VERSION).ihx \
61         src/telegps-v1.0/telegps-v1.0-$(VERSION).ihx \
62         src/telegps-v2.0/telegps-v2.0-$(VERSION).ihx \
63         src/telemega-v1.0/telemega-v1.0-$(VERSION).ihx \
64         src/telemega-v2.0/telemega-v2.0-$(VERSION).ihx \
65         src/telemega-v3.0/telemega-v3.0-$(VERSION).ihx \
66         src/telemega-v4.0/telemega-v4.0-$(VERSION).ihx \
67         src/telemetrum-v2.0/telemetrum-v2.0-$(VERSION).ihx \
68         src/telemetrum-v3.0/telemetrum-v3.0-$(VERSION).ihx \
69         src/telelco-v2.0/telelco-v2.0-$(VERSION).ihx \
70         src/telefireeight-v1.0/telefireeight-v1.0-$(VERSION).ihx \
71         src/telefireeight-v2.0/telefireeight-v2.0-$(VERSION).ihx
72
73 keithp-fat: fat
74         ssh keithp.com mkdir -p public_html/altos-$(VERSION)
75         scp -p $(fat_linux) $(fat_mac) $(fat_windows) $(fat_android) $(fat_altos) keithp.com:public_html/altos-$(VERSION)
76
77 set-java-versions:
78         $(top_srcdir)/fix-java-versions org.altusmetrum.altoslib=$(ALTOSLIB_VERSION) org.altusmetrum.altosuilib=$(ALTOSUILIB_VERSION)