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