Diff of /trunk/data/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by harbaum, Tue Jul 7 11:45:54 2009 UTC revision 296 by harbaum, Fri Aug 20 18:30:30 2010 UTC
# Line 1  Line 1 
1  APP = @PACKAGE@  APP = @PACKAGE@
2  PREFIX = @prefix@  MAEMO_VERSION_MAJOR = @MAEMO_VERSION_MAJOR@
3    prefix = @prefix@
4    datarootdir = @datarootdir@
5  datadir = @datarootdir@  datadir = @datarootdir@
6    
7  LANGS = en_GB de_DE fi_FI  LANGS = en_GB de_DE fi_FI ru_RU
8  LANGS_HELP = en_GB de_DE  LANGS_HELP = en_GB de_DE fi_FI
9    
10    ICON_SIZES = 12x12 16x16 24x24 32x32 48x48 64x64 45x12 90x24
11    
12  all:  all:
13    
14  clean:  clean:
15    
16  install-debian:  install-debian:
17  #       install -m 644 help/gpxview.html $(DESTDIR)$(PREFIX)/share/$(APP)  #       install -m 644 help/gpxview.html $(DESTDIR)$(prefix)/share/$(APP)
18    
19  install-maemo:  install-maemo:
20          install -d $(DESTDIR)$(PREFIX)$(datadir)/applications/hildon          # the path to /share is hardcoded since datapath points to /opt on fremantle
21          install $(APP).desktop $(DESTDIR)$(PREFIX)$(datadir)/applications/hildon          install -d $(DESTDIR)$(prefix)/share/applications/hildon
22            install $(APP).desktop $(DESTDIR)$(prefix)/share/applications/hildon
23          for s in 40 26; do \          for s in 40 26; do \
24            install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/hildon ;\            install -d $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon ;\
25            install -m 644 $(APP).$$s.png $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\            install -m 644 icons/$${s}x$${s}/$(APP).png $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\
         done  
         install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/hildon  
         install -m 644 $(APP).64.png $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/hildon/$(APP).png  
         for LANG in $(LANGS_HELP); do \  
                 install -d $(DESTDIR)$(PREFIX)/share/osso-help/$${LANG} ;\  
                 install -m 644 ../help/$${LANG}/*.xml $(DESTDIR)$(PREFIX)/share/osso-help/$${LANG} ;\  
26          done          done
27            install -d $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon
28            install -m 644 icons/64x64/$(APP).png $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon/$(APP).png
29            if [ $(MAEMO_VERSION_MAJOR) -lt 5 ]; then \
30                    echo "Installing hildon help files for maemo <= 4"; \
31                    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            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            fi
40    
41  install: @INSTALL_PLATTFORM@  install: @INSTALL_PLATTFORM@
42          install -d $(DESTDIR)$(PREFIX)/share/$(APP)          install -d $(DESTDIR)$(datadir)/$(APP)
43          install -m 644 icons/*.gif icons/*.png $(DESTDIR)$(PREFIX)/share/$(APP)          install -m 644 COPYING welcome.gpx $(DESTDIR)$(datadir)/$(APP);
44          install -m 644 welcome.gpx icons/*.png $(DESTDIR)$(PREFIX)/share/$(APP)          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          for LANG in $(LANGS); do \          for LANG in $(LANGS); do \
49                  install -d $(DESTDIR)$(PREFIX)/share/locale/$${LANG}/LC_MESSAGES ;\                  install -d $(DESTDIR)$(prefix)/share/locale/$${LANG}/LC_MESSAGES ;\
50                  msgfmt ../po/$${LANG}.po -o $(DESTDIR)$(PREFIX)/share/locale/$${LANG}/LC_MESSAGES/$(APP).mo ;\                  msgfmt ../po/$${LANG}.po -o $(DESTDIR)$(prefix)/share/locale/$${LANG}/LC_MESSAGES/$(APP).mo ;\
51          done          done
52    

Legend:
Removed from v.25  
changed lines
  Added in v.296