Contents of /trunk/data/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (hide annotations)
Mon Nov 23 18:33:12 2009 UTC (14 years, 6 months ago) by harbaum
File size: 2032 byte(s)
Applied gps icon and elemstyle patch
1 harbaum 110 TEMPLATE_ELEMSTYLES=elemstyles-mapnik.xml
2     APP = @PACKAGE@
3 harbaum 308 prefix = @prefix@
4     datarootdir = @datarootdir@
5 achadwick 129 datadir = @datarootdir@
6 harbaum 110
7     all: $(TEMPLATE_ELEMSTYLES)
8    
9     elemstyles-mapnik.xml: elemstyles-mapnik.xml.in
10     perl ./compose-elemstyles.pl 0.4 '#f2eee8' $+ > $@.tmp
11     mv $@.tmp $@
12    
13     clean:
14     rm -f $(TEMPLATE_ELEMSTYLES)
15    
16 harbaum 112 install-debian:
17 harbaum 308 install -d $(DESTDIR)$(datadir)/applications
18     install $(APP)-ubuntu.desktop $(DESTDIR)$(datadir)/applications/$(APP).desktop
19 achadwick 129 for s in 64 32 22 16; do \
20 harbaum 308 install -d $(DESTDIR)$(datadir)/icons/hicolor/$${s}x$${s}/apps ;\
21     install -m 644 $(APP).$$s.png $(DESTDIR)$(datadir)/icons/hicolor/$${s}x$${s}/apps/$(APP).png ;\
22 achadwick 129 done
23 harbaum 308 install -d $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
24     install -m 644 $(APP).svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/$(APP).svg
25 harbaum 110
26 harbaum 112
27 harbaum 110 install-maemo:
28 harbaum 308 # on maemo datadir may not point to the place where the system is
29     # expecting the icons. thus we hardcode the /share path
30 harbaum 314 install -d $(DESTDIR)$(prefix)/share/applications/hildon
31 harbaum 308 install $(APP).desktop $(DESTDIR)$(prefix)/share/applications/hildon
32 achadwick 129 for s in 40 26; do \
33 harbaum 308 install -d $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon ;\
34     install -m 644 $(APP).$$s.png $(DESTDIR)$(prefix)/share/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\
35 achadwick 129 done
36     # .png file in scalable? Maemo is strange...
37 harbaum 308 install -d $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon
38     install -m 644 $(APP).64.png $(DESTDIR)$(prefix)/share/icons/hicolor/scalable/hildon/$(APP).png
39 harbaum 112
40    
41     install: @INSTALL_PLATTFORM@ $(TEMPLATE_ELEMSTYLES)
42 harbaum 308 install -d $(DESTDIR)$(datadir)/$(APP)
43     install -m 644 *.txt $(DESTDIR)$(datadir)/$(APP)
44     install -m 644 *.xml $(DESTDIR)$(datadir)/$(APP)
45     install -m 644 *.style $(DESTDIR)$(datadir)/$(APP)
46 harbaum 110 for f in `find icons -name "*.png"`; do \
47 harbaum 308 install -d $(DESTDIR)$(datadir)/$(APP)/`dirname $$f` ;\
48     install -m 644 $$f $(DESTDIR)$(datadir)/$(APP)/$$f ;\
49 harbaum 110 done;
50 harbaum 308 install -d $(DESTDIR)$(datadir)/$(APP)/demo
51     install -m 644 demo/* $(DESTDIR)$(datadir)/$(APP)/demo
52 harbaum 110
53     distclean: clean