Parent Directory | Revision Log
Various adjustments
1 | harbaum | 1 | APP = @PACKAGE@ |
2 | harbaum | 154 | MAEMO_VERSION_MAJOR = @MAEMO_VERSION_MAJOR@ |
3 | harbaum | 135 | prefix = @prefix@ |
4 | datarootdir = @datarootdir@ | ||
5 | harbaum | 1 | datadir = @datarootdir@ |
6 | |||
7 | harbaum | 25 | LANGS = en_GB de_DE fi_FI |
8 | harbaum | 29 | LANGS_HELP = en_GB de_DE fi_FI |
9 | harbaum | 1 | |
10 | harbaum | 187 | ICON_SIZES = 12x12 16x16 32x32 48x48 64x64 45x12 90x24 |
11 | harbaum | 180 | |
12 | harbaum | 1 | all: |
13 | |||
14 | clean: | ||
15 | |||
16 | install-debian: | ||
17 | harbaum | 135 | # install -m 644 help/gpxview.html $(DESTDIR)$(prefix)/share/$(APP) |
18 | harbaum | 1 | |
19 | install-maemo: | ||
20 | harbaum | 135 | # the path to /share is hardcoded since datapath points to /opt on fremantle |
21 | install -d $(DESTDIR)$(prefix)/share/applications/hildon | ||
22 | install $(APP).desktop $(DESTDIR)$(prefix)/share/applications/hildon | ||
23 | harbaum | 1 | for s in 40 26; do \ |
24 | harbaum | 135 | install -d $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon ;\ |
25 | install -m 644 $(APP).$$s.png $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\ | ||
26 | harbaum | 1 | done |
27 | harbaum | 135 | install -d $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon |
28 | install -m 644 $(APP).64.png $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon/$(APP).png | ||
29 | harbaum | 154 | if [ $(MAEMO_VERSION_MAJOR) -lt 5 ]; then \ |
30 | harbaum | 189 | echo "Installing hildon help files for maemo <= 4"; \ |
31 | harbaum | 154 | for LANG in $(LANGS_HELP); do \ |
32 | install -d $(DESTDIR)$(prefix)/share/osso-help/$${LANG} ;\ | ||
33 | install -m 644 ../help/$${LANG}/*.xml $(DESTDIR)$(prefix)/share/osso-help/$${LANG} ;\ | ||
34 | done;\ | ||
35 | harbaum | 189 | else \ |
36 | echo "Installing backup configuration for maemo >= 5"; \ | ||
37 | install -d $(DESTDIR)/etc/osso-backup/applications ;\ | ||
38 | install $(APP).conf $(DESTDIR)/etc/osso-backup/applications ;\ | ||
39 | harbaum | 154 | fi |
40 | harbaum | 1 | |
41 | install: @INSTALL_PLATTFORM@ | ||
42 | harbaum | 135 | install -d $(DESTDIR)$(datadir)/$(APP) |
43 | harbaum | 189 | install -m 644 welcome.gpx icons/*.png $(DESTDIR)$(datadir)/$(APP); |
44 | harbaum | 180 | for SIZE in $(ICON_SIZES); do \ |
45 | install -d $(DESTDIR)$(datadir)/$(APP)/$${SIZE} ;\ | ||
46 | install -m 644 icons/$${SIZE}/*.png $(DESTDIR)$(datadir)/$(APP)/$${SIZE};\ | ||
47 | done | ||
48 | harbaum | 1 | for LANG in $(LANGS); do \ |
49 | harbaum | 135 | install -d $(DESTDIR)$(prefix)/share/locale/$${LANG}/LC_MESSAGES ;\ |
50 | msgfmt ../po/$${LANG}.po -o $(DESTDIR)$(prefix)/share/locale/$${LANG}/LC_MESSAGES/$(APP).mo ;\ | ||
51 | harbaum | 1 | done |
52 |