Contents of /trunk/data/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 129 - (hide annotations)
Sat Mar 21 02:11:55 2009 UTC (15 years, 2 months ago) by achadwick
File size: 1882 byte(s)
Versioning fixes, more install flexibility, new desktop icon resolutions.
1 harbaum 110 TEMPLATE_ELEMSTYLES=elemstyles-mapnik.xml
2     APP = @PACKAGE@
3     PREFIX = @prefix@
4 achadwick 129 datadir = @datarootdir@
5 harbaum 110
6     all: $(TEMPLATE_ELEMSTYLES)
7    
8     elemstyles-mapnik.xml: elemstyles-mapnik.xml.in
9     perl ./compose-elemstyles.pl 0.4 '#f2eee8' $+ > $@.tmp
10     mv $@.tmp $@
11    
12     clean:
13     rm -f $(TEMPLATE_ELEMSTYLES)
14    
15 harbaum 112 install-debian:
16 achadwick 129 install -d $(DESTDIR)$(PREFIX)$(datadir)/applications
17     install $(APP)-ubuntu.desktop $(DESTDIR)$(PREFIX)$(datadir)/applications/$(APP).desktop
18     for s in 64 32 22 16; do \
19     install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/apps ;\
20     install $(APP).$$s.png $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/apps/$(APP).svg ;\
21     done
22     install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/apps
23     install $(APP).svg $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/apps/$(APP).png
24 harbaum 110
25 harbaum 112
26 harbaum 110 install-maemo:
27 achadwick 129 install -d $(DESTDIR)$(PREFIX)$(datadir)/applications/hildon
28     install $(APP).desktop $(DESTDIR)$(PREFIX)$(datadir)/applications/hildon
29     for s in 40 26; do \
30     install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/hildon ;\
31     install $(APP).$$s.png $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/$${s}x$${s}/hildon/$(APP).png ;\
32     done
33     # .png file in scalable? Maemo is strange...
34     install -d $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/hildon
35     install $(APP).64.png $(DESTDIR)$(PREFIX)$(datadir)/icons/hicolor/scalable/hildon/$(APP).png
36 harbaum 112
37    
38     install: @INSTALL_PLATTFORM@ $(TEMPLATE_ELEMSTYLES)
39 achadwick 129 install -d $(DESTDIR)$(PREFIX)$(datadir)/$(APP)
40     install -m 644 *.txt $(DESTDIR)$(PREFIX)$(datadir)/$(APP)
41     install -m 644 *.xml $(DESTDIR)$(PREFIX)$(datadir)/$(APP)
42     install -m 644 *.style $(DESTDIR)$(PREFIX)$(datadir)/$(APP)
43 harbaum 110 for f in `find icons -name "*.png"`; do \
44 achadwick 129 install -d $(DESTDIR)$(PREFIX)$(datadir)/$(APP)/`dirname $$f` ;\
45     install -m 644 $$f $(DESTDIR)$(PREFIX)$(datadir)/$(APP)/$$f ;\
46 harbaum 110 done;
47    
48     distclean: clean